src/EventListener/ConfigurationNoticesListener.php
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);
        }
    }
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);
        }
    }
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 ) ; } }
If the site is in maintenance mode, show this on the dashboard.
If the site is in maintenance mode show this on the dashboard .