diff --git a/core/core.services.yml b/core/core.services.yml index 469a885..5a532af 100644 --- a/core/core.services.yml +++ b/core/core.services.yml @@ -168,7 +168,7 @@ services: arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler'] plugin.manager.action: class: Drupal\Core\Action\ActionManager - arguments: ['@container.namespaces', '@cache.cache', '@language_manager', '@module_handler'] + arguments: ['@container.namespaces', '@module_handler'] request: class: Symfony\Component\HttpFoundation\Request # @TODO the synthetic setting must be uncommented whenever drupal_session_initialize() diff --git a/core/lib/Drupal/Core/Action/ActionManager.php b/core/lib/Drupal/Core/Action/ActionManager.php index 3286476..f6f2b16 100644 --- a/core/lib/Drupal/Core/Action/ActionManager.php +++ b/core/lib/Drupal/Core/Action/ActionManager.php @@ -7,9 +7,7 @@ namespace Drupal\Core\Action; -use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Extension\ModuleHandlerInterface; -use Drupal\Core\Language\LanguageManager; use Drupal\Core\Plugin\DefaultPluginManager; /** @@ -26,18 +24,13 @@ class ActionManager extends DefaultPluginManager { * @param \Traversable $namespaces * An object that implements \Traversable which contains the root paths * keyed by the corresponding namespace to look for plugin implementations. - * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend - * Cache backend instance to use. - * @param \Drupal\Core\Language\LanguageManager $language_manager - * The language manager. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler to invoke the alter hook with. */ - public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, LanguageManager $language_manager, ModuleHandlerInterface $module_handler) { + public function __construct(\Traversable $namespaces, ModuleHandlerInterface $module_handler) { parent::__construct('Action', $namespaces, array(), 'Drupal\Core\Annotation\Action'); $this->alterInfo($module_handler, 'action_info'); - $this->setCacheBackend($cache_backend, $language_manager, 'action_info'); } /**