updating bundle class loading.
This commit is contained in:
parent
ec84d3f90d
commit
16dca5e74e
|
@ -138,7 +138,9 @@ protected static function autoloading($bundle, $config)
|
||||||
{
|
{
|
||||||
$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
|
||||||
|
|
Loading…
Reference in New Issue