Commit 31d13c5
committed
minor #11993 When overriding
This PR was merged into the 4.2 branch.
Discussion
----------
When overriding `session` service definition, make it public
`Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait::addFlash()` relies on getting the `session` service from the service container.
Since 3.4 services defined in `services.yaml` are private by default. When overriding the `session` service definition, it has to be explicitly marked as public.
The 4.2 documentation branch was the earliest I found containing this example service definition.
Commits
-------
315103f When overriding `session` service definition, make it publicsession service definition, make it public (pbowyer)1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
0 commit comments