From 70ce81aafdf8519a85831a8c40b1fcc45b947655 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Thu, 22 May 2014 09:18:13 +0100 Subject: [PATCH] Issue #2254001 by Mixologic: Use EntityMangagerInterface instead of Entity Manager in typehints. --- .../lib/Drupal/comment/Form/CommentAdminOverview.php | 8 ++++---- core/modules/user/lib/Drupal/user/UserAutocomplete.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php b/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php index a4db950bc45..efcd19eaee5 100644 --- a/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php +++ b/core/modules/comment/lib/Drupal/comment/Form/CommentAdminOverview.php @@ -12,7 +12,7 @@ use Drupal\comment\CommentStorageInterface; use Drupal\Component\Utility\Unicode; use Drupal\Core\Cache\Cache; use Drupal\Core\Datetime\Date; -use Drupal\Core\Entity\EntityManager; +use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Form\FormBase; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -25,7 +25,7 @@ class CommentAdminOverview extends FormBase { /** * The entity storage. * - * @var \Drupal\Core\Entity\EntityManager + * @var \Drupal\Core\Entity\EntityManagerInterface */ protected $entityManager; @@ -53,7 +53,7 @@ class CommentAdminOverview extends FormBase { /** * Creates a CommentAdminOverview form. * - * @param \Drupal\Core\Entity\EntityManager $entity_manager + * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager service. * @param \Drupal\comment\CommentStorageInterface $comment_storage * The comment storage. @@ -62,7 +62,7 @@ class CommentAdminOverview extends FormBase { * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler. */ - public function __construct(EntityManager $entity_manager, CommentStorageInterface $comment_storage, Date $date, ModuleHandlerInterface $module_handler) { + public function __construct(EntityManagerInterface $entity_manager, CommentStorageInterface $comment_storage, Date $date, ModuleHandlerInterface $module_handler) { $this->entityManager = $entity_manager; $this->commentStorage = $comment_storage; $this->date = $date; diff --git a/core/modules/user/lib/Drupal/user/UserAutocomplete.php b/core/modules/user/lib/Drupal/user/UserAutocomplete.php index 05ca14d5aef..c831c78625a 100644 --- a/core/modules/user/lib/Drupal/user/UserAutocomplete.php +++ b/core/modules/user/lib/Drupal/user/UserAutocomplete.php @@ -10,7 +10,7 @@ namespace Drupal\user; use Drupal\Component\Utility\String; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Database\Connection; -use Drupal\Core\Entity\EntityManager; +use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Entity\Query\QueryFactory; /** @@ -42,7 +42,7 @@ class UserAutocomplete { /** * The entity manager service. * - * @var \Drupal\Core\Entity\EntityManager + * @var \Drupal\Core\Entity\EntityManagerInterface */ protected $entityManager; @@ -54,7 +54,7 @@ class UserAutocomplete { * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The config factory. */ - public function __construct(Connection $connection, ConfigFactoryInterface $config_factory, EntityManager $entity_manager, QueryFactory $entity_query) { + public function __construct(Connection $connection, ConfigFactoryInterface $config_factory, EntityManagerInterface $entity_manager, QueryFactory $entity_query) { $this->connection = $connection; $this->configFactory = $config_factory; $this->entityQuery = $entity_query;