From e21071ce0f928ffcdb957ac9705a590ba931da26 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 8 Jul 2025 14:45:44 +0200 Subject: [PATCH] Drop obsolete route references The related controller action is gone since b6b5caace373aade21e7a2c7fe24272f05d11dfd --- library/Icinga/Application/Modules/Module.php | 12 ---------- library/Icinga/Application/Web.php | 22 ------------------- 2 files changed, 34 deletions(-) diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index a703287f9..5dfab32d0 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -1338,18 +1338,6 @@ class Module foreach ($this->routes as $name => $route) { $router->addRoute($name, $route); } - $router->addRoute( - $this->name . '_jsprovider', - new Zend_Controller_Router_Route( - 'js/' . $this->name . '/:file', - array( - 'action' => 'javascript', - 'controller' => 'static', - 'module' => 'default', - 'module_name' => $this->name - ) - ) - ); $router->addRoute( $this->name . '_img', new Zend_Controller_Router_Route_Regex( diff --git a/library/Icinga/Application/Web.php b/library/Icinga/Application/Web.php index 6aa8a18ce..4b04e6d38 100644 --- a/library/Icinga/Application/Web.php +++ b/library/Icinga/Application/Web.php @@ -80,7 +80,6 @@ class Web extends EmbeddedWeb ->setupModuleManager() ->loadSetupModuleIfNecessary() ->loadEnabledModules() - ->setupRoute() ->setupPagination() ->setupUserBackendFactory() ->setupUser() @@ -117,27 +116,6 @@ class Web extends EmbeddedWeb return array_combine($themes, $themes); } - /** - * Prepare routing - * - * @return $this - */ - private function setupRoute() - { - $this->frontController->getRouter()->addRoute( - 'module_javascript', - new Zend_Controller_Router_Route( - 'js/components/:module_name/:file', - array( - 'controller' => 'static', - 'action' => 'javascript' - ) - ) - ); - - return $this; - } - /** * Getter for frontController *