Skip to content

Commit 6b3ea58

Browse files
author
Andrey
authored
Update SlimCMS.php
fix bug if not install system
1 parent 5e0fdee commit 6b3ea58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Source/Decorators/SlimCMS.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public function run($silent = false)
2525

2626
protected function onFinish()
2727
{
28+
if( !$this->getContainer()->offsetExists('logger') ) return;
29+
2830
$event = new \App\Source\Events\BaseLoggerEvent($this->getContainer()->get('logger'));
2931
if($this->getContainer()->offsetExists('dispatcher')) {
3032
$this->getContainer()->dispatcher->dispatch('app.afterRun', $event);
@@ -38,4 +40,4 @@ protected function onStar()
3840
$this->getContainer()->dispatcher->dispatch('app.beforeRun', $event);
3941
}
4042
}
41-
}
43+
}

0 commit comments

Comments
 (0)