2015-06-30 11:19:31 +02:00
|
|
|
<?php
|
|
|
|
|
2015-10-20 22:34:04 +02:00
|
|
|
namespace Icinga\Module\Director\Controllers;
|
|
|
|
|
2015-06-30 11:19:31 +02:00
|
|
|
use Icinga\Module\Director\Web\Controller\ObjectsController;
|
|
|
|
|
2015-10-20 22:34:04 +02:00
|
|
|
class ServicesController extends ObjectsController
|
2015-06-30 11:19:31 +02:00
|
|
|
{
|
2016-08-23 18:06:05 +02:00
|
|
|
public function init()
|
|
|
|
{
|
|
|
|
parent::init();
|
|
|
|
$this->view->tabs->remove('objects');
|
|
|
|
}
|
|
|
|
|
2016-08-23 17:11:42 +02:00
|
|
|
public function indexAction()
|
|
|
|
{
|
|
|
|
$r = $this->getRequest();
|
|
|
|
if ($r->getActionName() !== 'templates' && ! $this->getRequest()->isApiRequest()) {
|
|
|
|
$this->redirectNow('director/services/templates');
|
|
|
|
}
|
|
|
|
|
|
|
|
return parent::indexAction();
|
|
|
|
}
|
2015-06-30 11:19:31 +02:00
|
|
|
}
|