File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Move the request handling logic into its own ``Simplex\\Framework`` class::
2626 use Symfony\Component\HttpFoundation\Request;
2727 use Symfony\Component\HttpFoundation\Response;
2828 use Symfony\Component\Routing\Matcher\UrlMatcher;
29+ use Symfony\Component\Routing\Exception\ResourceNotFoundException;
2930 use Symfony\Component\HttpKernel\Controller\ControllerResolver;
3031
3132 class Framework
@@ -48,9 +49,9 @@ Move the request handling logic into its own ``Simplex\\Framework`` class::
4849 $arguments = $this->resolver->getArguments($request, $controller);
4950
5051 return call_user_func_array($controller, $arguments);
51- } catch (Routing\Exception\ ResourceNotFoundException $e) {
52+ } catch (ResourceNotFoundException $e) {
5253 return new Response('Not Found', 404);
53- } catch (Exception $e) {
54+ } catch (\ Exception $e) {
5455 return new Response('An error occurred', 500);
5556 }
5657 }
You can’t perform that action at this time.
0 commit comments