Commit 1ff9deb1 authored by Taylor Otwell's avatar Taylor Otwell

clean up auto-loader registrations.

parent e996093b
...@@ -67,7 +67,10 @@ class Bundle { ...@@ -67,7 +67,10 @@ class Bundle {
// It is possible for the develoepr to specify auto-loader mappings // It is possible for the develoepr to specify auto-loader mappings
// directly on the bundle registration. This provides a convenient // directly on the bundle registration. This provides a convenient
// way to register mappings withuot a bootstrap. // way to register mappings withuot a bootstrap.
static::autoloading($bundle, $config); if (isset($config['autoloads']))
{
static::autoloading($bundle, $config);
}
} }
/** /**
...@@ -141,7 +144,7 @@ class Bundle { ...@@ -141,7 +144,7 @@ class Bundle {
{ {
$path = trim(Bundle::path($bundle), DS); $path = trim(Bundle::path($bundle), DS);
foreach (array_get($config, 'autoloads', array()) as $type => $mappings) foreach ($config['autoloads'] as $type => $mappings)
{ {
// When registering each type of mapping we'll replace the (:bundle) // When registering each type of mapping we'll replace the (:bundle)
// place-holder with the path to the bundle's root directory, so // place-holder with the path to the bundle's root directory, so
......
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