protected function maintenanceCheck()
    {
        if ($this->app['config']->get('general/maintenance_mode', false)) {
            $notice = json_encode([
                'severity' => 1,
                'notice'   => "Bolt's <strong>maintenance mode</strong> is enabled. This means that non-authenticated users will not be able to see the website.",
                'info'     => 'To make the site available to the general public again, set <code>maintenance_mode: false</code> in your <code>config.yml</code> file.',
            ]);
            $this->app['logger.flash']->configuration($notice);
        }
    }