You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a resource can't be found, system is going in fatal error:
Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError:
Type error: Argument 1 passed to FOS\RestBundle\Controller\ExceptionController::__construct() must implement interface FOS\RestBundle\View\ViewHandlerInterface, none given,
called in /app/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php on line 202 in /app/vendor/friendsofsymfony/rest-bundle/Controller/ExceptionController.php:43 Stack trace: #0 /app/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php(202): FOS\RestBundle\Controller\ExceptionController->__construct() #1 /app/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/ContainerControllerResolver.php(74): Symfony\Component\HttpKernel\Controller\ControllerResolver->instantiateController('FOS\RestBundle\...') #2 /app/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php(72): Symfony\Component\HttpKernel\Controller\ContainerControllerResolver->instantiateControl in /app/vendor/friendsofsymfony/rest-bundle/Controller/ExceptionController.php on line 43
It happens with non-existing resources (like /taxons/blablabla) and with not defined routes (like /blablabla).
Hi guys!
When a resource can't be found, system is going in fatal error:
It happens with non-existing resources (like
/taxons/blablabla
) and with not defined routes (like/blablabla
).Examples:
In app_dev.php,
NotFoundException
is catched by Symfony profiler which show stacktrace. Inapp
env, it goes in error.The text was updated successfully, but these errors were encountered: