laravel/laravel — Issue #282: Autoloader struggles with bundles
Author: sparksp
Created: 2012-01-28 01:13:00+00:00
State: open

I have a bundle "menu" with a single class `Menu\Menu` contained in **menu.php** that is required by **bundle.php**.

In 3.0b2 I could simply use `Menu\Menu` and it would start the bundle and work fine.

In develop I have added `'menu'` to **bundles/bundles.php**, but when it tries to start the bundle it's trying to start `Menu` not `menu`. It starts the bundle fine if my **bundles/bundles.php** contains the following...

'menu', 'Menu' => array(
'location' => 'menu',
),

But obviously this is not idea. Should the namespace always be lowercased before starting a bundle with it?