minor #11769 [HttpKernel] Change exception message in case no controller found (ghostika)
This PR was squashed before being merged into the 2.6-dev branch (closes #11769).
Discussion
----------
[HttpKernel] Change exception message in case no controller found
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #11754
| License | MIT
| Doc PR | n/a
Change the NotFoundHttpException message.
Commits
-------
b0a839c
[HttpKernel] Change exception message in case no controller found
This commit is contained in:
commit
4d3ebd1c11
@ -131,7 +131,7 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface
|
|||||||
|
|
||||||
// load controller
|
// load controller
|
||||||
if (false === $controller = $this->resolver->getController($request)) {
|
if (false === $controller = $this->resolver->getController($request)) {
|
||||||
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". Maybe you forgot to add the matching route in your routing configuration?', $request->getPathInfo()));
|
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
|
||||||
}
|
}
|
||||||
|
|
||||||
$event = new FilterControllerEvent($this, $controller, $request, $type);
|
$event = new FilterControllerEvent($this, $controller, $request, $type);
|
||||||
|
Reference in New Issue
Block a user