\Charcoal\Email\ScriptProcessQueueScript

Process Email Queue script.

Can also be used as a cron script.

Summary

Methods
Properties
Constants
setDependencies()
run()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
setQueueItemFactory()
$queueItemFactory
$sent
N/A

Properties

$queueItemFactory

$queueItemFactory : \Charcoal\Factory\FactoryInterface

Type

\Charcoal\Factory\FactoryInterface

$sent

$sent : array

A copy of all sent message.

Type

array

Methods

setDependencies()

setDependencies(\Pimple\Container  $container) : void

Parameters

\Pimple\Container $container

Pimple DI container.

run()

run(\Psr\Http\Message\RequestInterface  $request, \Psr\Http\Message\ResponseInterface  $response) : \Psr\Http\Message\ResponseInterface

Process all messages currently in queue.

Parameters

\Psr\Http\Message\RequestInterface $request

A PSR-7 compatible Request instance.

\Psr\Http\Message\ResponseInterface $response

A PSR-7 compatible Response instance.

Returns

\Psr\Http\Message\ResponseInterface

setQueueItemFactory()

setQueueItemFactory(\Charcoal\Factory\FactoryInterface  $factory) : void

Parameters

\Charcoal\Factory\FactoryInterface $factory

The factory to create queue items.