diff --git a/src/flextype/bootstrap/after-plugins.php b/src/flextype/bootstrap/after-plugins.php new file mode 100644 index 00000000..0f5fb6c4 --- /dev/null +++ b/src/flextype/bootstrap/after-plugins.php @@ -0,0 +1,7 @@ +file(PATH_PROJECT . '/bootstrap/after-plugins.php')->exists()) { + require_once PATH_PROJECT . '/bootstrap/after-plugins.php'; +} \ No newline at end of file diff --git a/src/flextype/bootstrap/before-plugins.php b/src/flextype/bootstrap/before-plugins.php new file mode 100644 index 00000000..1a75c863 --- /dev/null +++ b/src/flextype/bootstrap/before-plugins.php @@ -0,0 +1,7 @@ +file(PATH_PROJECT . '/bootstrap/before-plugins.php')->exists()) { + require_once PATH_PROJECT . '/bootstrap/before-plugins.php'; +} \ No newline at end of file diff --git a/src/flextype/flextype.php b/src/flextype/flextype.php index 5b5f6079..ffee911c 100644 --- a/src/flextype/flextype.php +++ b/src/flextype/flextype.php @@ -376,10 +376,16 @@ if (in_array(registry()->get('flextype.settings.timezone'), DateTimeZone::listId View::setDirectory(PATH_PROJECT); View::setExtension(registry()->get('flextype.settings.view.extension')); +// Add bootstrap file before plugins intialization. +require_once ROOT_DIR . '/src/flextype/bootstrap/before-plugins.php'; + // Add Plugins Service container()->set('plugins', new Plugins()); -// Add Routes +// Add bootstrap file before plugins intialization. +require_once ROOT_DIR . '/src/flextype/bootstrap/after-plugins.php'; + +// Add Routes file. require_once ROOT_DIR . '/src/flextype/routes/routes.php'; // Enable lazy CORS