Ejemplo n.º 1
0
 public function executeFilter(HttpRequestInterface $request, HttpResponseInterface $response)
 {
     /**
      * maintenance mode must be enabled in configuration
      */
     if ($this->config['maintenance']['maintenance'] == 1) {
         return;
     }
     /**
      * @todo b) create override of maintenance mode, in case it's an admin user?
      */
     // fetch renderer
     $smarty = Koch_Renderer_Factory::getRenderer('smarty', Clansuite_CMS::getInjector());
     // fetch maintenance template
     $html = $smarty->fetch(ROOT_THEMES . 'core/view/smarty/maintenance.tpl', true);
     // output
     $response->setContent($html);
     $response->flush();
     exit;
 }