App\Source\Decorators\SlimCMS::onFinish PHP Method

onFinish() protected method

protected onFinish ( )
    protected function onFinish()
    {
        if (!$this->getContainer()->offsetExists('logger')) {
            return;
        }
        $event = new \App\Source\Events\BaseLoggerEvent($this->getContainer()->get('logger'));
        if ($this->getContainer()->offsetExists('dispatcher')) {
            $this->getContainer()->dispatcher->dispatch('app.afterRun', $event);
        }
    }