Commit 4465c027 authored by Taylor Otwell's avatar Taylor Otwell

Refactor loader for performance.

parent e3785ee7
......@@ -19,9 +19,9 @@ class Package {
{
foreach ((array) $packages as $package)
{
if (file_exists($bootstrap = PACKAGE_PATH.$package.'/bootstrap'.EXT))
if ( ! static::loaded($package) and file_exists($bootstrap = PACKAGE_PATH.$package.'/bootstrap'.EXT))
{
require_once $bootstrap;
require $bootstrap;
}
static::$loaded[] = $package;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment