laravel/laravel — pull request #1188 by bryantebeek (2012-09-05 22:10:47+00:00)
Title: Fixed Bundle::handles() to properly get the bundle with the most specific URI

For instance we have registered two bundles (bundles.php):

array(
'cms'=>array('handles'=>'cms'),
'cms-pages'=>array('handles'=>'cms/pages')
)

Then if we fired this:

Bundle::handles('cms/pages')

We would get 'cms' as the bundle responsible to handle the URI instead of 'cms-pages'.

Much love to Laravel,

Bryan te Beek

Signed-off-by: Bryan te Beek