diff --git a/application/config/package.php b/application/config/package.php new file mode 100644 index 00000000..51a66147 --- /dev/null +++ b/application/config/package.php @@ -0,0 +1,24 @@ + array(), + +); \ No newline at end of file diff --git a/public/index.php b/public/index.php index 459e764a..998464d0 100644 --- a/public/index.php +++ b/public/index.php @@ -140,6 +140,13 @@ require SYS_PATH.'routing/router'.EXT; require SYS_PATH.'routing/loader'.EXT; require SYS_PATH.'routing/filter'.EXT; +// -------------------------------------------------------------- +// Load the packages that are in the auto-loaded packages array. +// -------------------------------------------------------------- +require SYS_PATH.'package'.EXT; + +System\Package::load(System\Config::get('packages.autoload')); + // -------------------------------------------------------------- // Register the route filters. // -------------------------------------------------------------- diff --git a/system/package.php b/system/package.php index b8058b09..08c24fe3 100644 --- a/system/package.php +++ b/system/package.php @@ -23,6 +23,8 @@ class Package { { static::load($value); } + + return; } // Packages may have a bootstrap file, which commonly is used to register auto-loaders