Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor symfony#6298 Update dependency_injection.rst because it has an …
…error. (joserprieto) This PR was submitted for the 3.0 branch but it was merged into the 2.8 branch instead (closes symfony#6298). Discussion ---------- Update dependency_injection.rst because it has an error. The line: $sc->register('listener.router', 'Symfony\Component\HttpKernel\EventListener\RouterListener') ->setArguments(array(new Reference('matcher'))) ; is wrong, because the Symfony\Component\HttpKernel\EventListener\ResponseListener has two mandatory arguments; an instance of Symfony\Component\Routing\Matcher\UrlMatcher (or RequestMatcher), and an instance of RequestStack; so, we need to add the line: $sc->register('request_stack', 'Symfony\Component\HttpFoundation\RequestStack'); And change the registration of listener.router on this form: $sc->register('listener.router', 'Symfony\Component\HttpKernel\EventListener\RouterListener') ->setArguments(array(new Reference('matcher'), new Reference('request_stack'))) ; Commits ------- 06eee41 Update dependency_injection.rst because it has an error.
- Loading branch information