params->shift('host'); $query = Host::on(IcingaDbObject::fetchDb()); IcingaDbObject::applyIcingaDbRestrictions($query); $query->filter(Filter::equal('host.name', $hostName)); $host = $query->first(); $this->params->add('name', $hostName); if ($host !== null) { $this->redirectNow(Url::fromPath('icingadb/host')->setParams($this->params)); } $this->view->host = $hostName; } }