neilime/zf2-assets-bundle

Going to unknown Controller throws uncaught ServiceNotFoundException

chielsen opened this issue · 4 comments

In AssetsBundle\Service\Service on line 96 you are getting the Controller class, without checking if it exists. So instead of showing a 404 page, I'm getting an uncaught Exception.

Maybe check if an error param is given or check if the class can be loaded

Please can you try with the very last version ?

Cool, thanks for the quick response :)

A but it's not working, fix should be:

if ($oControllerLoader->has($sControllerName) && ($oController = $oControllerLoader->get($sControllerName))) {

Sure, you're right. Sorry for this error.
Fixed.