Commit 1d4cdae
[Symfony] Make grabService use the special test service container if available (#5706)
grabService seems to be somewhat broken for newer Symfony versions (> 4.1 ?) and with Symfony 4.1 a special container can be accessed via `test.service_container` for testing purposes which also provides access to private services:
https://symfony.com/doc/current/testing.html#accessing-the-container1 parent 0b3eb2a commit 1d4cdae
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
269 | 279 | | |
270 | 280 | | |
271 | 281 | | |
| |||
0 commit comments