Issue #2254001 by Mixologic: Use EntityMangagerInterface instead of Entity Manager in typehints.

8.0.x
Alex Pott 2014-05-22 09:18:13 +01:00
parent e44d15a76d
commit 70ce81aafd
2 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ use Drupal\comment\CommentStorageInterface;
use Drupal\Component\Utility\Unicode; use Drupal\Component\Utility\Unicode;
use Drupal\Core\Cache\Cache; use Drupal\Core\Cache\Cache;
use Drupal\Core\Datetime\Date; use Drupal\Core\Datetime\Date;
use Drupal\Core\Entity\EntityManager; use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormBase;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
@ -25,7 +25,7 @@ class CommentAdminOverview extends FormBase {
/** /**
* The entity storage. * The entity storage.
* *
* @var \Drupal\Core\Entity\EntityManager * @var \Drupal\Core\Entity\EntityManagerInterface
*/ */
protected $entityManager; protected $entityManager;
@ -53,7 +53,7 @@ class CommentAdminOverview extends FormBase {
/** /**
* Creates a CommentAdminOverview form. * Creates a CommentAdminOverview form.
* *
* @param \Drupal\Core\Entity\EntityManager $entity_manager * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
* The entity manager service. * The entity manager service.
* @param \Drupal\comment\CommentStorageInterface $comment_storage * @param \Drupal\comment\CommentStorageInterface $comment_storage
* The comment storage. * The comment storage.
@ -62,7 +62,7 @@ class CommentAdminOverview extends FormBase {
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The 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->entityManager = $entity_manager;
$this->commentStorage = $comment_storage; $this->commentStorage = $comment_storage;
$this->date = $date; $this->date = $date;

View File

@ -10,7 +10,7 @@ namespace Drupal\user;
use Drupal\Component\Utility\String; use Drupal\Component\Utility\String;
use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Database\Connection; use Drupal\Core\Database\Connection;
use Drupal\Core\Entity\EntityManager; use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\Query\QueryFactory; use Drupal\Core\Entity\Query\QueryFactory;
/** /**
@ -42,7 +42,7 @@ class UserAutocomplete {
/** /**
* The entity manager service. * The entity manager service.
* *
* @var \Drupal\Core\Entity\EntityManager * @var \Drupal\Core\Entity\EntityManagerInterface
*/ */
protected $entityManager; protected $entityManager;
@ -54,7 +54,7 @@ class UserAutocomplete {
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The 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->connection = $connection;
$this->configFactory = $config_factory; $this->configFactory = $config_factory;
$this->entityQuery = $entity_query; $this->entityQuery = $entity_query;