More factoring on bootstrap.
This commit is contained in:
parent
ebc736812b
commit
9827ca2cde
|
@ -114,11 +114,6 @@
|
||||||
Package::load(Config::get('application.packages'));
|
Package::load(Config::get('application.packages'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
|
||||||
// Register the application filters.
|
|
||||||
// --------------------------------------------------------------
|
|
||||||
Routing\Filter::register(require APP_PATH.'filters'.EXT);
|
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Determine the module that should handle the request.
|
// Determine the module that should handle the request.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
|
@ -134,6 +129,8 @@
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Register the filters for the active module.
|
// Register the filters for the active module.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
|
Routing\Filter::register(require APP_PATH.'filters'.EXT);
|
||||||
|
|
||||||
if (ACTIVE_MODULE !== 'application' and file_exists($filters = ACTIVE_MODULE_PATH.'filters'.EXT))
|
if (ACTIVE_MODULE !== 'application' and file_exists($filters = ACTIVE_MODULE_PATH.'filters'.EXT))
|
||||||
{
|
{
|
||||||
Routing\Filter::register(require $filters);
|
Routing\Filter::register(require $filters);
|
||||||
|
|
Loading…
Reference in New Issue