Refactor the package class.

This commit is contained in:
Taylor Otwell 2011-08-08 14:28:38 -05:00
parent ddc02a829a
commit e3785ee7ff
1 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,10 @@ public static function load($packages)
{ {
foreach ((array) $packages as $package) foreach ((array) $packages as $package)
{ {
if (file_exists($bootstrap = PACKAGE_PATH.$package.'/bootstrap'.EXT)) require_once $bootstrap; if (file_exists($bootstrap = PACKAGE_PATH.$package.'/bootstrap'.EXT))
{
require_once $bootstrap;
}
static::$loaded[] = $package; static::$loaded[] = $package;
} }