Skip to content

Commit 479a85e

Browse files
committed
fixed typos
1 parent a0b1d42 commit 479a85e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

book/part7.rst

+3-2
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)