We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e0fdee commit 6b3ea58Copy full SHA for 6b3ea58
app/Source/Decorators/SlimCMS.php
@@ -25,6 +25,8 @@ public function run($silent = false)
25
26
protected function onFinish()
27
{
28
+ if( !$this->getContainer()->offsetExists('logger') ) return;
29
+
30
$event = new \App\Source\Events\BaseLoggerEvent($this->getContainer()->get('logger'));
31
if($this->getContainer()->offsetExists('dispatcher')) {
32
$this->getContainer()->dispatcher->dispatch('app.afterRun', $event);
@@ -38,4 +40,4 @@ protected function onStar()
38
40
$this->getContainer()->dispatcher->dispatch('app.beforeRun', $event);
39
41
}
42
-}
43
+}
0 commit comments