File tree 1 file changed +3
-2
lines changed
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::
26
26
use Symfony\Component\HttpFoundation\Request;
27
27
use Symfony\Component\HttpFoundation\Response;
28
28
use Symfony\Component\Routing\Matcher\UrlMatcher;
29
+ use Symfony\Component\Routing\Exception\ResourceNotFoundException;
29
30
use Symfony\Component\HttpKernel\Controller\ControllerResolver;
30
31
31
32
class Framework
@@ -48,9 +49,9 @@ Move the request handling logic into its own ``Simplex\\Framework`` class::
48
49
$arguments = $this->resolver->getArguments($request, $controller);
49
50
50
51
return call_user_func_array($controller, $arguments);
51
- } catch (Routing\Exception\ ResourceNotFoundException $e) {
52
+ } catch (ResourceNotFoundException $e) {
52
53
return new Response('Not Found', 404);
53
- } catch (Exception $e) {
54
+ } catch (\ Exception $e) {
54
55
return new Response('An error occurred', 500);
55
56
}
56
57
}
You can’t perform that action at this time.
0 commit comments