File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,10 @@ public static function register($bundle, $config = array())
63
63
}
64
64
65
65
static ::$ bundles [$ bundle ] = array_merge ($ defaults , $ config );
66
-
66
+
67
+ // It is possible for the develoepr to specify auto-loader mappings
68
+ // directly on the bundle registration. This provides a convenient
69
+ // way to register mappings withuot a bootstrap.
67
70
static ::autoloading ($ bundle , $ config );
68
71
}
69
72
@@ -138,9 +141,7 @@ protected static function autoloading($bundle, $config)
138
141
{
139
142
$ path = trim (Bundle::path ($ bundle ), DS );
140
143
141
- $ autoloads = array_get ($ config , 'autoloads ' , array ());
142
-
143
- foreach ($ autoloads as $ type => $ mappings )
144
+ foreach (array_get ($ config , 'autoloads ' , array ()) as $ type => $ mappings )
144
145
{
145
146
// When registering each type of mapping we'll replace the (:bundle)
146
147
// place-holder with the path to the bundle's root directory, so
You can’t perform that action at this time.
0 commit comments