added packages auto-load array.
This commit is contained in:
parent
fb984016e8
commit
dbf43877c6
|
@ -0,0 +1,24 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return array(
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Auto-Loaded Packages
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| The packages that should be auto-loaded each time Laravel handles
|
||||||
|
| a request. These should generally be packages that you use on almost
|
||||||
|
| every request to your application.
|
||||||
|
|
|
||||||
|
| Each package specified here will be bootstrapped and can be conveniently
|
||||||
|
| used by your application's routes, models, and libraries.
|
||||||
|
|
|
||||||
|
| Note: The package names in this array should correspond to a package
|
||||||
|
| directory in application/packages.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'autoload' => array(),
|
||||||
|
|
||||||
|
);
|
|
@ -140,6 +140,13 @@
|
||||||
require SYS_PATH.'routing/loader'.EXT;
|
require SYS_PATH.'routing/loader'.EXT;
|
||||||
require SYS_PATH.'routing/filter'.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.
|
// Register the route filters.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
|
|
|
@ -23,6 +23,8 @@ public static function load($package)
|
||||||
{
|
{
|
||||||
static::load($value);
|
static::load($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Packages may have a bootstrap file, which commonly is used to register auto-loaders
|
// Packages may have a bootstrap file, which commonly is used to register auto-loaders
|
||||||
|
|
Loading…
Reference in New Issue