2013-06-14 07:51:44 -04:00
|
|
|
<?php
|
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
|
|
|
|
|
# namespace Icinga\Application\Controllers;
|
|
|
|
|
|
2014-01-24 06:20:13 -05:00
|
|
|
use Icinga\Web\Controller\ActionController;
|
|
|
|
|
use Icinga\Application\Benchmark;
|
2014-03-04 08:24:53 -05:00
|
|
|
use Icinga\Web\Url;
|
2013-06-14 07:51:44 -04:00
|
|
|
|
|
|
|
|
/**
|
2013-08-16 08:56:23 -04:00
|
|
|
* Application wide index controller
|
2013-06-14 07:51:44 -04:00
|
|
|
*/
|
|
|
|
|
class IndexController extends ActionController
|
|
|
|
|
{
|
|
|
|
|
/**
|
2013-08-30 09:50:49 -04:00
|
|
|
* Use a default redirection rule to welcome page
|
2013-06-14 07:51:44 -04:00
|
|
|
*/
|
|
|
|
|
public function preDispatch()
|
|
|
|
|
{
|
2013-08-30 09:50:49 -04:00
|
|
|
if ($this->getRequest()->getActionName() !== 'welcome') {
|
2014-10-20 07:27:33 -04:00
|
|
|
$this->redirectNow(Url::fromRequest()->setPath('dashboard'));
|
2013-06-14 07:51:44 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2013-08-16 08:56:23 -04:00
|
|
|
* Application's start page
|
2013-06-14 07:51:44 -04:00
|
|
|
*/
|
|
|
|
|
public function welcomeAction()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|