diff --git a/modules/quant_purger/src/Plugin/Purge/Queuer/QuantPurger.php b/modules/quant_purger/src/Plugin/Purge/Queuer/QuantPurger.php index a0182014..bc215d98 100644 --- a/modules/quant_purger/src/Plugin/Purge/Queuer/QuantPurger.php +++ b/modules/quant_purger/src/Plugin/Purge/Queuer/QuantPurger.php @@ -4,14 +4,12 @@ use Drupal\Core\Cache\CacheTagsInvalidatorInterface; use Drupal\quant\Plugin\QueueItem\RouteItem; -use Symfony\Component\DependencyInjection\ContainerAwareInterface; -use Symfony\Component\DependencyInjection\ContainerAwareTrait; +use Psr\Container\ContainerInterface; /** * Queues URLs with Quant when Drupal invalidates cache tags. */ -class QuantPurger implements CacheTagsInvalidatorInterface, ContainerAwareInterface { - use ContainerAwareTrait; +class QuantPurger implements CacheTagsInvalidatorInterface { /** * A list of tags that have already been invalidated in this request. @@ -55,6 +53,18 @@ class QuantPurger implements CacheTagsInvalidatorInterface, ContainerAwareInterf */ protected $quantSeedQueue; + /** + * The service container. + */ + protected ContainerInterface $container; + + /** + * Sets the service container. + */ + public function setContainer(ContainerInterface $container): void { + $this->container = $container; + } + /** * Initialize the invalidation factory and queue service. *