* @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 { /** * Use a default redirection rule to welcome page */ public function preDispatch() { if ($this->getRequest()->getActionName() !== 'welcome') { $this->redirect('dashboard/index'); } } /** * Application's start page */ public function welcomeAction() { } } // @codingStandardsIgnoreEnd