From 16dca5e74e09d3745750d607cb0170525397f59c Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 20 Feb 2012 14:40:24 -0600 Subject: [PATCH] updating bundle class loading. --- laravel/bundle.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/laravel/bundle.php b/laravel/bundle.php index b9bbfd51..4aa3483a 100644 --- a/laravel/bundle.php +++ b/laravel/bundle.php @@ -138,7 +138,9 @@ protected static function autoloading($bundle, $config) { $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) // place-holder with the path to the bundle's root directory, so