Bootstrap modules at last

We initialize modules before we set up the user backend and other
singletons. But modules may access those in order to check the
permissions of the authenticated user for example. With this fix,
modules are loaded once all other bootstrap tasks have been completed.

refs #3470
This commit is contained in:
Eric Lippmann 2018-06-27 09:52:00 +02:00
parent c633c86db7
commit 0433dc4166
1 changed files with 4 additions and 4 deletions

View File

@ -89,9 +89,6 @@ class Web extends EmbeddedWeb
->setupNotifications()
->setupResponse()
->setupZendMvc()
->setupModuleManager()
->loadSetupModuleIfNecessary()
->loadEnabledModules()
->setupRoute()
->setupPagination()
->setupUserBackendFactory()
@ -99,7 +96,10 @@ class Web extends EmbeddedWeb
->setupTimezone()
->setupLogger()
->setupInternationalization()
->setupFatalErrorHandling();
->setupFatalErrorHandling()
->setupModuleManager()
->loadSetupModuleIfNecessary()
->loadEnabledModules();
}
/**