spacing
This commit is contained in:
@@ -39,13 +39,17 @@ trait Behaviour
|
|||||||
{
|
{
|
||||||
$dispatcher = static::getDispatcher($container);
|
$dispatcher = static::getDispatcher($container);
|
||||||
|
|
||||||
$dispatcher->subscribeTo('applicationStart', function (Event $event) {
|
$dispatcher->subscribeTo('applicationStart',
|
||||||
$container = $event->getArgument('container');
|
function (Event $event) {
|
||||||
self::getLogger($container)->notice('Application start: ' . $_ENV['APPLICATION_NAME']); });
|
self::getLogger(
|
||||||
|
$event->getArgument('container'))
|
||||||
|
->notice('Application start: ' . $_ENV['APPLICATION_NAME']); });
|
||||||
|
|
||||||
$dispatcher->subscribeTo('applicationStop', function (Event $event) {
|
$dispatcher->subscribeTo('applicationStop',
|
||||||
$container = $event->getArgument('container');
|
function (Event $event) {
|
||||||
self::getLogger($container)->notice('Application stop: ' . $_ENV['APPLICATION_NAME']); });
|
self::getLogger(
|
||||||
|
$event->getArgument('container'))
|
||||||
|
->notice('Application stop: ' . $_ENV['APPLICATION_NAME']); });
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract private static function getDispatcher(Container $container): \Potter\Event\Dispatcher;
|
abstract private static function getDispatcher(Container $container): \Potter\Event\Dispatcher;
|
||||||
|
|||||||
Reference in New Issue
Block a user