a2f8c32bd3
This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] Fix service arg resolver for controllers as array callables | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24970 | License | MIT | Doc PR | ø Replacing #24970 as I can't push tests directly to @nicolas-grekas' PR. > As spotted today during a Symfony 4 workshop at SymfonyCon Cluj, setting a controller as an array [SomeController::class, 'helloAction'] works, it is defined as a service, BUT the actions don't get the services as arguments. This is fixing it. Commits ------- |
||
---|---|---|
.. | ||
Symfony |