class ValidateQueueNameListener (View source)

Traits

A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.

Methods

static 
create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

__construct(QueueWorkerManagerInterface $workerManager, LoggerInterface $logger)

No description

void
__invoke(ConsoleCommandEvent $event)

This subscriber affects commands which put #[ValidateQueueName] on the class.

static array
getQueues()

No description

Details

static create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

Parameters

ContainerInterface $container

The service container this instance should use.

__construct(QueueWorkerManagerInterface $workerManager, LoggerInterface $logger)

No description

Parameters

QueueWorkerManagerInterface $workerManager
LoggerInterface $logger

void __invoke(ConsoleCommandEvent $event)

This subscriber affects commands which put #[ValidateQueueName] on the class.

Method usages are enforced by Annotated Command still.

Parameters

ConsoleCommandEvent $event

Return Value

void

static array getQueues()

No description

Return Value

array