Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions modules/quant_purger/src/Plugin/Purge/Queuer/QuantPurger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*
Expand Down