Trait QueueTrait
Provides functionality for queuing actions from mailer classes.
Namespace: Cake\Queue\Mailer
Method Summary
-
push() public
Pushes a mailer action onto the queue.
Method Detail
push() ΒΆ public
push(string $action, array $args = [], array $headers = [], array $options = []): void
Pushes a mailer action onto the queue.
Parameters
-
string
$action The name of the mailer action to trigger.
-
array
$args optional Arguments to pass to the triggered mailer action.
-
array
$headers optional Headers to set.
-
array
$options optional an array of options for publishing the job
Returns
void
Throws
Cake\Mailer\Exception\MissingActionException