added packages auto-load array.

This commit is contained in:
Taylor Otwell
2011-08-02 22:29:48 -05:00
parent fb984016e8
commit dbf43877c6
3 changed files with 33 additions and 0 deletions

View File

@@ -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.
// --------------------------------------------------------------