Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 479a85e

Browse filesBrowse files
committed
fixed typos
1 parent a0b1d42 commit 479a85e
Copy full SHA for 479a85e

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎book/part7.rst

Copy file name to clipboardExpand all lines: book/part7.rst
+3-2Lines changed: 3 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.