diff --git a/core/lib/Drupal/Core/Condition/ConditionManager.php b/core/lib/Drupal/Core/Condition/ConditionManager.php index 3c0c51b..dca73ff 100644 --- a/core/lib/Drupal/Core/Condition/ConditionManager.php +++ b/core/lib/Drupal/Core/Condition/ConditionManager.php @@ -18,7 +18,7 @@ use Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator; use Drupal\Core\Plugin\Discovery\AlterDecorator; use Drupal\Core\Plugin\Discovery\CacheDecorator; -use Drupal\Component\Plugin\Factory\DefaultFactory; +use Drupal\Core\Plugin\Factory\ContainerFactory; /** * A plugin manager for condition plugins. @@ -47,7 +47,7 @@ public function __construct(\Traversable $namespaces, CacheBackendInterface $cac $this->discovery = new AlterDecorator($this->discovery, 'condition_info'); $this->discovery = new CacheDecorator($this->discovery, 'condition:' . $language_manager->getLanguage(Language::TYPE_INTERFACE)->langcode); - $this->factory = new DefaultFactory($this); + $this->factory = new ContainerFactory($this); $this->alterInfo($module_handler, 'condition_info'); $this->setCacheBackend($cache_backend, $language_manager, 'condition');