diff --git a/core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php b/core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php index 211ecd7..a45c24e 100644 --- a/core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php +++ b/core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php @@ -7,7 +7,6 @@ namespace Drupal\Core\PathProcessor; -use Drupal\Core\Config\ConfigFactoryInterface; use Symfony\Component\HttpFoundation\Request; /** diff --git a/core/lib/Drupal/Core/Routing/UrlGenerator.php b/core/lib/Drupal/Core/Routing/UrlGenerator.php index bcb174e..f81ff51 100644 --- a/core/lib/Drupal/Core/Routing/UrlGenerator.php +++ b/core/lib/Drupal/Core/Routing/UrlGenerator.php @@ -80,10 +80,12 @@ class UrlGenerator extends ProviderBasedGenerator implements UrlGeneratorInterfa * * @param \Drupal\Core\Routing\RouteProviderInterface $provider * The route provider to be searched for routes. - * @param \Drupal\Core\Path\AliasManagerInterface $alias_manager - * The alias manager responsible for path aliasing. + * @param \Drupal\Core\Config\ConfigFactoryInterface $config + * The config factory. + * @param \Drupal\Component\Utility\Settings $settings * @param \Symfony\Component\HttpKernel\Log\LoggerInterface $logger * An optional logger for recording errors. + * @internal param \Drupal\Core\Path\AliasManagerInterface $alias_manager The alias manager responsible for path aliasing.* The alias manager responsible for path aliasing. */ public function __construct(RouteProviderInterface $provider, OutboundPathProcessorInterface $path_processor, OutboundRouteProcessorInterface $route_processor, ConfigFactoryInterface $config, Settings $settings, LoggerInterface $logger = NULL) { parent::__construct($provider, $logger); diff --git a/core/modules/config/lib/Drupal/config/Form/ConfigSync.php b/core/modules/config/lib/Drupal/config/Form/ConfigSync.php index 0dd9734..e13eb3f 100644 --- a/core/modules/config/lib/Drupal/config/Form/ConfigSync.php +++ b/core/modules/config/lib/Drupal/config/Form/ConfigSync.php @@ -53,7 +53,9 @@ class ConfigSync extends FormBase { protected $eventDispatcher; /** - * @var \Drupal\Core\Entity\EntityManagerInterface; + * The configuration manager. + * + * @var \Drupal\Core\Config\ConfigManagerInterface; */ protected $configManager; @@ -65,13 +67,6 @@ class ConfigSync extends FormBase { protected $urlGenerator; /** - * The UUID service. - * - * @var \Drupal\Component\Uuid\UuidInterface - */ - protected $uuidService; - - /** * The typed config manager. * * @var \Drupal\Core\Config\TypedConfigManager @@ -89,14 +84,10 @@ class ConfigSync extends FormBase { * The lock object. * @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher * Event dispatcher. - * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory - * The config factory. - * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager - * Entity manager. + * @param \Drupal\Core\Config\ConfigManager + * Configuration manager. * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator * The url generator service. - * @param \Drupal\Component\Uuid\UuidInterface $uuid_service - * The UUID Service. * @param \Drupal\Core\Config\TypedConfigManager $typed_config * The typed configuration manager. */ diff --git a/core/modules/field/lib/Drupal/field/FieldInstanceStorageController.php b/core/modules/field/lib/Drupal/field/FieldInstanceStorageController.php index 30a15fe..f92e96e 100644 --- a/core/modules/field/lib/Drupal/field/FieldInstanceStorageController.php +++ b/core/modules/field/lib/Drupal/field/FieldInstanceStorageController.php @@ -46,8 +46,8 @@ class FieldInstanceStorageController extends ConfigStorageController { /** * Constructs a FieldInstanceStorageController object. * - * @param \Drupal\Core\Entity\EntityTypeInterface $entity_info - * The entity info for the entity type. + * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type + * The entity type definition. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The config factory service. * @param \Drupal\Core\Config\StorageInterface $config_storage @@ -61,8 +61,8 @@ class FieldInstanceStorageController extends ConfigStorageController { * @param \Drupal\Core\KeyValueStore\StateInterface $state * The state key value store. */ - public function __construct(EntityTypeInterface $entity_info, ConfigFactoryInterface $config_factory, StorageInterface $config_storage, QueryFactory $entity_query_factory, UuidInterface $uuid_service, EntityManagerInterface $entity_manager, StateInterface $state) { - parent::__construct($entity_info, $config_factory, $config_storage, $entity_query_factory, $uuid_service); + public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, StorageInterface $config_storage, QueryFactory $entity_query_factory, UuidInterface $uuid_service, EntityManagerInterface $entity_manager, StateInterface $state) { + parent::__construct($entity_type, $config_factory, $config_storage, $entity_query_factory, $uuid_service); $this->entityManager = $entity_manager; $this->state = $state; } @@ -70,9 +70,9 @@ public function __construct(EntityTypeInterface $entity_info, ConfigFactoryInter /** * {@inheritdoc} */ - public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_info) { + public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) { return new static( - $entity_info, + $entity_type, $container->get('config.factory'), $container->get('config.storage'), $container->get('entity.query'), diff --git a/core/modules/field/lib/Drupal/field/FieldStorageController.php b/core/modules/field/lib/Drupal/field/FieldStorageController.php index d526aad..9c83968 100644 --- a/core/modules/field/lib/Drupal/field/FieldStorageController.php +++ b/core/modules/field/lib/Drupal/field/FieldStorageController.php @@ -48,8 +48,8 @@ class FieldStorageController extends ConfigStorageController { /** * Constructs a FieldStorageController object. * - * @param \Drupal\Core\Entity\EntityTypeInterface $entity_info - * The entity info for the entity type. + * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type + * The entity type definition. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The config factory service. * @param \Drupal\Core\Config\StorageInterface $config_storage @@ -65,8 +65,8 @@ class FieldStorageController extends ConfigStorageController { * @param \Drupal\Core\KeyValueStore\StateInterface $state * The state key value store. */ - public function __construct(EntityTypeInterface $entity_info, ConfigFactoryInterface $config_factory, StorageInterface $config_storage, QueryFactory $entity_query_factory, UuidInterface $uuid_service, EntityManagerInterface $entity_manager, ModuleHandler $module_handler, StateInterface $state) { - parent::__construct($entity_info, $config_factory, $config_storage, $entity_query_factory, $uuid_service); + public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, StorageInterface $config_storage, QueryFactory $entity_query_factory, UuidInterface $uuid_service, EntityManagerInterface $entity_manager, ModuleHandler $module_handler, StateInterface $state) { + parent::__construct($entity_type, $config_factory, $config_storage, $entity_query_factory, $uuid_service); $this->entityManager = $entity_manager; $this->moduleHandler = $module_handler; $this->state = $state; @@ -75,9 +75,9 @@ public function __construct(EntityTypeInterface $entity_info, ConfigFactoryInter /** * {@inheritdoc} */ - public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_info) { + public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) { return new static( - $entity_info, + $entity_type, $container->get('config.factory'), $container->get('config.storage'), $container->get('entity.query'), diff --git a/core/modules/filter/lib/Drupal/filter/FilterFormatListController.php b/core/modules/filter/lib/Drupal/filter/FilterFormatListController.php index e1fb28e..e64dce8 100644 --- a/core/modules/filter/lib/Drupal/filter/FilterFormatListController.php +++ b/core/modules/filter/lib/Drupal/filter/FilterFormatListController.php @@ -36,15 +36,15 @@ class FilterFormatListController extends DraggableListController implements Enti /** * Constructs a new FilterFormatListController. * - * @param \Drupal\Core\Entity\EntityTypeInterface $entity_info - * The entity info for the entity type. + * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type + * The entity type definition. * @param \Drupal\Core\Entity\EntityStorageControllerInterface $storage * The entity storage controller class. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The config factory. */ - public function __construct(EntityTypeInterface $entity_info, EntityStorageControllerInterface $storage, ConfigFactoryInterface $config_factory) { - parent::__construct($entity_info, $storage); + public function __construct(EntityTypeInterface $entity_type, EntityStorageControllerInterface $storage, ConfigFactoryInterface $config_factory) { + parent::__construct($entity_type, $storage); $this->configFactory = $config_factory; } @@ -52,10 +52,10 @@ public function __construct(EntityTypeInterface $entity_info, EntityStorageContr /** * {@inheritdoc} */ - public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_info) { + public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) { return new static( - $entity_info, - $container->get('entity.manager')->getStorageController($entity_info->id()), + $entity_type, + $container->get('entity.manager')->getStorageController($entity_type->id()), $container->get('config.factory') ); } diff --git a/core/modules/forum/tests/Drupal/forum/Tests/ForumManagerTest.php b/core/modules/forum/tests/Drupal/forum/Tests/ForumManagerTest.php index 89f1460..3074cda 100644 --- a/core/modules/forum/tests/Drupal/forum/Tests/ForumManagerTest.php +++ b/core/modules/forum/tests/Drupal/forum/Tests/ForumManagerTest.php @@ -34,9 +34,7 @@ public function testGetIndex() { ->disableOriginalConstructor() ->getMock(); - $config_factory = $this->getMockBuilder('\Drupal\Core\Config\ConfigFactoryInterface') - ->disableOriginalConstructor() - ->getMock(); + $config_factory = $this->getMock('\Drupal\Core\Config\ConfigFactoryInterface') $config = $this->getMockBuilder('\Drupal\Core\Config\Config') ->disableOriginalConstructor() diff --git a/core/modules/language/tests/Drupal/language/Tests/LanguageNegotiationUrlTest.php b/core/modules/language/tests/Drupal/language/Tests/LanguageNegotiationUrlTest.php index b47b537..6a4df28 100644 --- a/core/modules/language/tests/Drupal/language/Tests/LanguageNegotiationUrlTest.php +++ b/core/modules/language/tests/Drupal/language/Tests/LanguageNegotiationUrlTest.php @@ -100,7 +100,7 @@ public function testDomain($http_host, $domains, $expected_langcode) { * Provides data for the domain test. * * @return array - * An array of data for checking domain negotiation. + * An array of data for checking domain negotation. */ public function providerTestDomain() { diff --git a/core/modules/search/lib/Drupal/search/SearchPageListController.php b/core/modules/search/lib/Drupal/search/SearchPageListController.php index 418bc40..6d4edc3 100644 --- a/core/modules/search/lib/Drupal/search/SearchPageListController.php +++ b/core/modules/search/lib/Drupal/search/SearchPageListController.php @@ -45,8 +45,8 @@ class SearchPageListController extends DraggableListController implements FormIn /** * Constructs a new SearchPageListController object. * - * @param \Drupal\Core\Entity\EntityTypeInterface $entity_info - * The entity info for the entity type. + * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type + * The entity type definition. * @param \Drupal\Core\Entity\EntityStorageControllerInterface $storage * The entity storage controller class. * @param \Drupal\search\SearchPluginManager $search_manager @@ -54,8 +54,8 @@ class SearchPageListController extends DraggableListController implements FormIn * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. */ - public function __construct(EntityTypeInterface $entity_info, EntityStorageControllerInterface $storage, SearchPluginManager $search_manager, ConfigFactoryInterface $config_factory) { - parent::__construct($entity_info, $storage); + public function __construct(EntityTypeInterface $entity_type, EntityStorageControllerInterface $storage, SearchPluginManager $search_manager, ConfigFactoryInterface $config_factory) { + parent::__construct($entity_type, $storage); $this->configFactory = $config_factory; $this->searchManager = $search_manager; } @@ -63,10 +63,10 @@ public function __construct(EntityTypeInterface $entity_info, EntityStorageContr /** * {@inheritdoc} */ - public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_info) { + public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) { return new static( - $entity_info, - $container->get('entity.manager')->getStorageController($entity_info->id()), + $entity_type, + $container->get('entity.manager')->getStorageController($entity_type->id()), $container->get('plugin.manager.search'), $container->get('config.factory') );