backend = $backend; return $this; } /** * Get the monitoring backend * * @return MonitoringBackend */ public function getBackend() { return $this->backend; } /** * Get the transport used to send commands * * @param Request $request * * @return \Icinga\Module\Monitoring\Command\Transport\CommandTransportInterface */ public function getTransport(Request $request) { $instance = $request->getParam('instance'); if ($instance !== null) { $transport = CommandTransport::create($instance); } else { $transport = CommandTransport::first(); } return $transport; } }