$notificationFactory
$notificationFactory : \Charcoal\Factory\FactoryInterface
Process "daily" notifications
run(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response) : \Psr\Http\Message\ResponseInterface
\Psr\Http\Message\RequestInterface | $request | A PSR-7 compatible Request instance. |
\Psr\Http\Message\ResponseInterface | $response | A PSR-7 compatible Response instance. |
emailData(\Charcoal\Admin\Object\Notification $notification, \Charcoal\Model\CollectionInterface $objects) : array
\Charcoal\Admin\Object\Notification | $notification | The notification object. |
\Charcoal\Model\CollectionInterface | $objects | The objects that were modified. |
setModelFactory(\Charcoal\Factory\FactoryInterface $factory) : \Charcoal\Admin\AdminScript
\Charcoal\Factory\FactoryInterface | $factory | The factory used to create models. |
Chainable
handleNotification(\Charcoal\Admin\Object\Notification $notification) : void
Handle a notification request
\Charcoal\Admin\Object\Notification | $notification | The notification object to handle. |
sendEmail(\Charcoal\Admin\Object\Notification $notification, \Charcoal\Model\CollectionInterface $objects) : void
\Charcoal\Admin\Object\Notification | $notification | The notification object. |
\Charcoal\Model\CollectionInterface | $objects | The objects that were modified. |
booleanInput(\Charcoal\Property\PropertyInterface $prop) : \League\CLImate\TerminalObject\Dynamic\Input
Get a CLI input from a boolean property.
\Charcoal\Property\PropertyInterface | $prop | The property to retrieve input from. |
passwordInput(\Charcoal\Property\PropertyInterface $prop) : \League\CLImate\TerminalObject\Dynamic\Input
Get a CLI password input (hidden) from a password property.
\Charcoal\Property\PropertyInterface | $prop | The property to retrieve input from. |