params->shift('host'); $serviceName = $this->params->shift('service'); $query = Service::on(IcingaDbObject::fetchDb()); IcingaDbObject::applyIcingaDbRestrictions($query); $query->filter(Filter::all( Filter::equal('service.name', $serviceName), Filter::equal('host.name', $hostName) )); $service = $query->first(); $this->params->add('name', $serviceName); $this->params->add('host.name', $hostName); if ($service !== null) { $this->redirectNow(Url::fromPath('icingadb/service')->setParams($this->params)); } else { $this->getTabs()->disableLegacyExtensions(); $this->view->host = $hostName; $this->view->service = $serviceName; $this->view->tabs = null; // compatController already creates tabs $this->addContent(HtmlString::create($this->view->render('ido-service/show.phtml'))); } } }