From b9a8f9d0e81ba101b6f1c48e112f3f72f2a9bb91 Mon Sep 17 00:00:00 2001 From: Joshua Fernandes <“joshua.1234511@yahoo.in”> Date: Thu, 22 May 2025 23:45:42 +0530 Subject: [PATCH] [250] Updated code for CallableResolver and ClassResolver no longer support ContainerAwareInterface - D11 Compatibility. --- .../src/Plugin/Purge/Queuer/QuantPurger.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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. *