Going to unknown Controller throws uncaught ServiceNotFoundException
chielsen opened this issue · 4 comments
chielsen commented
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
neilime commented
Please can you try with the very last version ?
chielsen commented
Cool, thanks for the quick response :)
chielsen commented
A but it's not working, fix should be:
if ($oControllerLoader->has($sControllerName) && ($oController = $oControllerLoader->get($sControllerName))) {
neilime commented
Sure, you're right. Sorry for this error.
Fixed.