Modules: Call `Module::registerWebIntegration()' after including the run script
Routes added via a module's run script were not respected since `Module::registerRoutes()' is called from `Module::registerWebIntegration()'. refs #6303
This commit is contained in:
parent
93ee8e0a3d
commit
c12c4a9e4c
|
@ -192,8 +192,7 @@ class Module
|
|||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->registerAutoloader()
|
||||
->registerWebIntegration();
|
||||
$this->registerAutoloader();
|
||||
try {
|
||||
$this->launchRunScript();
|
||||
} catch (Exception $e) {
|
||||
|
@ -205,6 +204,7 @@ class Module
|
|||
);
|
||||
return false;
|
||||
}
|
||||
$this->registerWebIntegration();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue