* @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\Benchmark; use Icinga\Web\Url; /** * Application wide index controller */ class IndexController extends ActionController { /** * Use a default redirection rule to welcome page */ public function preDispatch() { if ($this->getRequest()->getActionName() !== 'welcome') { $url = Url::fromPath('dashboard'); $render = $this->_request->getParam('_render'); if ($render) { $url->setParam('_render', $render); } $this->redirectNow($url); } } /** * Application's start page */ public function welcomeAction() { } } // @codingStandardsIgnoreEnd