diff --git a/core/lib/Drupal/Core/Language/LanguageManager.php b/core/lib/Drupal/Core/Language/LanguageManager.php index 8990cb5..229002e 100644 --- a/core/lib/Drupal/Core/Language/LanguageManager.php +++ b/core/lib/Drupal/Core/Language/LanguageManager.php @@ -7,9 +7,9 @@ namespace Drupal\Core\Language; +use Drupal\Component\Plugin\PluginManagerInterface; use Drupal\Component\Utility\MapArray; use Drupal\Core\Extension\ModuleHandlerInterface; -use Drupal\Component\Plugin\PluginManagerInterface; use Drupal\Core\KeyValueStore\KeyValueStoreInterface; use Symfony\Component\HttpFoundation\Request; diff --git a/core/modules/language/lib/Drupal/language/LanguageManager.php b/core/modules/language/lib/Drupal/language/LanguageManager.php index 72197dc..434bfa5 100644 --- a/core/modules/language/lib/Drupal/language/LanguageManager.php +++ b/core/modules/language/lib/Drupal/language/LanguageManager.php @@ -7,13 +7,14 @@ namespace Drupal\language; +use Drupal\Component\Plugin\PluginManagerInterface; use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Config\StorageInterface; use Drupal\Core\Database\Connection; +use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\KeyValueStore\KeyValueStoreInterface; use Drupal\Core\Language\Language; use Drupal\Core\Language\LanguageManager as LanguageManagerBase; -use Drupal\Component\Plugin\PluginManagerInterface; /** * Overrides default LanguageManager to provide configured languages. @@ -40,16 +41,16 @@ class LanguageManager extends LanguageManagerBase { * @param array $config * An array of configuration. * @param \Drupal\Component\Plugin\PluginManagerInterface $negotiator_manager - * The language negotiation methods plugin manager. - * @param \Drupal\Core\KeyValueStoreInterface $state + * The language negotiation methods plugin manager + * @param \Drupal\Core\KeyValueStore\KeyValueStoreInterface $state * The state key value store. - * @param \Drupal\Core\Config\ConfigFactory $config_factory - * The config factory service. + * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler + * The module handler service. * @param \Drupal\Core\Config\StorageInterface $config_storage * The config storage service. */ - public function __construct(array $config, PluginManagerInterface $negotiator_manager, KeyValueStoreInterface $state, StorageInterface $config_storage) { - parent::__construct($config, $negotiator_manager, $state); + public function __construct(array $config, PluginManagerInterface $negotiator_manager, KeyValueStoreInterface $state, ModuleHandlerInterface $module_handler, StorageInterface $config_storage) { + parent::__construct($config, $negotiator_manager, $state, $module_handler); $this->configStorage = $config_storage; }