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 76f5f90

Browse filesBrowse files
committed
FrameworkBundle: catch InvalidArgumentException instead of generic \Exception
1 parent 48c3cf9 commit 76f5f90
Copy full SHA for 76f5f90

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎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
@@ -95,7 +95,7 @@ public function load($resource, $type = null)
9595
if ($controller = $route->getDefault('_controller')) {
9696
try {
9797
$controller = $this->parser->parse($controller);
98-
} catch (\Exception $e) {
98+
} catch (\InvalidArgumentException $e) {
9999
// unable to optimize unknown notation
100100
}
101101

0 commit comments

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