diff --git a/modules/monitoring/application/controllers/ServiceController.php b/modules/monitoring/application/controllers/ServiceController.php new file mode 100644 index 000000000..7f643e657 --- /dev/null +++ b/modules/monitoring/application/controllers/ServiceController.php @@ -0,0 +1,41 @@ +service = new Service($this->params); // Use $this->_request->getParams() instead of $this->params + // once #7049 has been fixed + } + + protected function handleCommandForm(CommandForm $form) + { + $form + ->setService($this->service) + ->handleRequest(); + $this->view->form = $form; + $this->_helper->viewRenderer('command'); + return $form; + } + + /** + * Schedule a service downtime + */ + public function scheduleDowntimeAction() + { + $this->view->title = $this->translate('Schedule Service Downtime'); + $this->handleCommandForm(new ScheduleServiceDowntimeCommandForm()); + } +}