Skip to content

Commit 8d188ff

Browse files
committed
minor #10117 Update dependency_injection.rst (mkurc1)
This PR was submitted for the 4.1 branch but it was merged into the 4.0 branch instead (closes #10117). Discussion ---------- Update dependency_injection.rst Remove suffix Action from path to ErrorController. Otherwise it doesn't work. Same problem as #10116. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 8b39f1e Update dependency_injection.rst
2 parents 267ea5f + 8b39f1e commit 8d188ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

create_framework/dependency_injection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Create a new file to host the dependency injection container configuration::
121121
->setArguments(array('UTF-8'))
122122
;
123123
$containerBuilder->register('listener.exception', HttpKernel\EventListener\ExceptionListener::class)
124-
->setArguments(array('Calendar\Controller\ErrorController::exceptionAction'))
124+
->setArguments(array('Calendar\Controller\ErrorController::exception'))
125125
;
126126
$containerBuilder->register('dispatcher', EventDispatcher\EventDispatcher::class)
127127
->addMethodCall('addSubscriber', array(new Reference('listener.router')))

0 commit comments

Comments
 (0)