Skip to content
Snippets Groups Projects
Unverified Commit ed2ac703 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Fix backwards compatibility

As a fallback, look for routes in the location 1.18 would have expected them
parent 5831c75f
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment