Commit 16dca5e7 authored by Taylor Otwell's avatar Taylor Otwell

updating bundle class loading.

parent ec84d3f9
...@@ -138,7 +138,9 @@ class Bundle { ...@@ -138,7 +138,9 @@ class Bundle {
{ {
$path = trim(Bundle::path($bundle), DS); $path = trim(Bundle::path($bundle), DS);
foreach ((array) $config['autoloads'] as $type => $mappings) $autoloads = array_get($config, 'autoloads', array());
foreach ($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