public function InvalidateCommand::__construct in Purge 8.3
Construct a Invalidatecommand object.
Parameters
\Drupal\purge\Plugin\Purge\Invalidation\InvalidationsServiceInterface $purge_invalidation_factory: The purge invalidation factory service.
\Drupal\purge\Plugin\Purge\Processor\ProcessorsServiceInterface $purge_processors: The purge processors service.
\Drupal\purge\Plugin\Purge\Purger\PurgersServiceInterface $purge_purgers: The purge purgers service.
File
- modules/
purge_drush/ src/ Commands/ InvalidateCommand.php, line 55
Class
- InvalidateCommand
- Directly invalidate an item without going through the queue.
Namespace
Drupal\purge_drush\CommandsCode
public function __construct(InvalidationsServiceInterface $purge_invalidation_factory, ProcessorsServiceInterface $purge_processors, PurgersServiceInterface $purge_purgers) {
parent::__construct();
$this->purgeInvalidationFactory = $purge_invalidation_factory;
$this->purgeProcessors = $purge_processors;
$this->purgePurgers = $purge_purgers;
}