8000 feature #11314 [FrameworkBundle] Improved controller class error (jsk… · symfony/symfony@b3b41d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit b3b41d5

Browse files
committed
feature #11314 [FrameworkBundle] Improved controller class error (jskvara)
This PR was merged into the 2.6-dev branch. Discussion ---------- [FrameworkBundle] Improved controller class error | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #11304 | License | MIT | Doc PR | Commits ------- da41eb1 [FrameworkBundle] improved controller name parse error message
2 parents ee0a074 + da41eb1 commit b3b41d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Controller/ControllerNameParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function parse($controller)
7979
}
8080

8181
$bundles[] = $b->getName();
82-
$msg = sprintf('Unable to find controller "%s:%s" - class "%s" does not exist.', $bundle, $controller, $try);
82+
$msg = sprintf('The _controller value "%s:%s:%s" maps to a "%s" class, but this class was not found. Create this class or check the spelling of the class and its namespace.', $bundle, $controller, $action, $try);
8383
}
8484

8585
if (count($bundles) > 1) {

0 commit comments

Comments
 (0)
0