From ed2ac70390c2594d789b3f4abf87061653791f48 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tim.dijen@minbzk.nl> Date: Mon, 11 May 2020 11:18:07 +0200 Subject: [PATCH] Fix backwards compatibility As a fallback, look for routes in the location 1.18 would have expected them --- lib/SimpleSAML/Kernel.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/SimpleSAML/Kernel.php b/lib/SimpleSAML/Kernel.php index 2127d870d..814624af8 100644 --- a/lib/SimpleSAML/Kernel.php +++ b/lib/SimpleSAML/Kernel.php @@ -136,6 +136,10 @@ class Kernel extends BaseKernel $confDir = Module::getModuleDir($this->module) . '/routing/routes'; if (is_dir($confDir)) { $routes->import($confDir . '/**/*' . self::CONFIG_EXTS, $this->module, 'glob'); + } else { + // Remain backwards compatible by checking for routers in the old location (1.18 style) + $confDir = Module::getModuleDir($this->module); + $routes->import($confDir . '/routes' . self::CONFIG_EXTS, $this->module, 'glob'); } } -- GitLab