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 38b4d5c

Browse filesBrowse files
committed
FrameworkBundle: catch InvalidArgumentException instead of generic \Exception
1 parent 1fa5ece commit 38b4d5c
Copy full SHA for 38b4d5c

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function load($resource, $type = null)
9292
if ($controller = $route->getDefault('_controller')) {
9393
try {
9494
$controller = $this->parser->parse($controller);
95-
} catch (\Exception $e) {
95+
} catch (\InvalidArgumentException $e) {
9696
// unable to optimize unknown notation
9797
}
9898

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.