* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team */ // {{{ICINGA_LICENSE_HEADER}}} # namespace Icinga\Application\Controllers; use \Icinga\Web\Controller\ActionController; use \Icinga\Application\Icinga; /** * Application wide index controller */ class IndexController extends ActionController { /** * Always authenticate */ public function preDispatch() { parent::preDispatch(); // -> auth :( if ($this->action_name !== 'welcome') { $this->redirect('index/welcome'); } } /** * Application's start page */ public function welcomeAction() { } } // @codingStandardsIgnoreEnd