ServiceController: Move protected methods

This commit is contained in:
Eric Lippmann 2019-12-16 16:04:44 +01:00
parent b5f1580839
commit 6655140030

View file

@ -53,16 +53,6 @@ class ServiceController extends Controller
$this->setTitleTab($this->getRequest()->getActionName());
}
public function getCommandTargetsUrl()
{
return Links::service($this->service, $this->service->host);
}
public function fetchCommandTargets()
{
return [$this->service];
}
public function indexAction()
{
if ($this->service->state->is_overdue) {
@ -218,4 +208,14 @@ class ServiceController extends Controller
$this->view->title = $tab->getLabel();
}
}
public function fetchCommandTargets()
{
return [$this->service];
}
public function getCommandTargetsUrl()
{
return Links::service($this->service, $this->service->host);
}
}