From f66ab8dae2f3d0418759f81a3a64dc9517a62449 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:17:31 +0200 Subject: Adding upstream version 1.10.2. Signed-off-by: Daniel Baumann --- .../controllers/ServiceapplyrulesController.php | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 application/controllers/ServiceapplyrulesController.php (limited to 'application/controllers/ServiceapplyrulesController.php') diff --git a/application/controllers/ServiceapplyrulesController.php b/application/controllers/ServiceapplyrulesController.php new file mode 100644 index 0000000..c3a7f2b --- /dev/null +++ b/application/controllers/ServiceapplyrulesController.php @@ -0,0 +1,39 @@ +getRequest(); + if (! $request->isApiRequest()) { + throw new NotFoundError('Not found'); + } + + $table = ApplyRulesTable::create('service', $this->db()); +/* + $query = $this->db()->getDbAdapter() + ->select() + ->from('icinga_service') + ->where('object_type = ?', 'apply'); + $rules = IcingaService::loadAll($this->db(), $query); +*/ + + $handler = (new IcingaObjectsHandler( + $request, + $this->getResponse(), + $this->db() + ))->setTable($table); + + $handler->dispatch(); + } +} -- cgit v1.2.3