diff --git a/core/modules/rest/lib/Drupal/rest/Plugin/Type/ResourcePluginManager.php b/core/modules/rest/lib/Drupal/rest/Plugin/Type/ResourcePluginManager.php index b2862b6..909b47b 100644 --- a/core/modules/rest/lib/Drupal/rest/Plugin/Type/ResourcePluginManager.php +++ b/core/modules/rest/lib/Drupal/rest/Plugin/Type/ResourcePluginManager.php @@ -7,7 +7,7 @@ namespace Drupal\rest\Plugin\Type; -use Drupal\Component\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator; +use Drupal\Core\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator; use Drupal\Component\Plugin\Factory\ReflectionFactory; use Drupal\Component\Plugin\PluginManagerBase; use Drupal\Core\Plugin\Discovery\AlterDecorator; @@ -29,7 +29,7 @@ class ResourcePluginManager extends PluginManagerBase { public function __construct(\Traversable $namespaces) { // Create resource plugin derivatives from declaratively defined resources. $this->discovery = new AnnotatedClassDiscovery('Plugin/rest/resource', $namespaces); - $this->discovery = new ContainersDerivativeDiscoveryDecorator($this->discovery); + $this->discovery = new ContainerDerivativeDiscoveryDecorator($this->discovery); $this->discovery = new AlterDecorator($this->discovery, 'rest_resource'); $this->discovery = new CacheDecorator($this->discovery, 'rest');