Commit 87a6845
committed
bug #23468 [DI] Handle root namespace in service definitions (ro0NL)
This PR was squashed before being merged into the 2.7 branch (closes #23468).
Discussion
----------
[DI] Handle root namespace in service definitions
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->
| License | MIT
| Doc PR | symfony/symfony-docs#... <!--highly recommended for new features-->
Fixes
```
Cannot dump definition because of invalid class name ('\\stdClass')
```
for
```yaml
services:
foo: {class: '\stdClass' }
```
`ContainerBuilder` allows it, so `PhpDumper` should as well.
Commits
-------
05170c8 [DI] Handle root namespace in service definitionsFile tree
2 8000 files changed
+19
-10
lines changed- src/Symfony/Component/DependencyInjection
- Dumper
- Tests/Dumper
2 files changed
+19
-10
lines changedLines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
| 380 | + | |
387 | 381 | | |
388 | | - | |
| 382 | + | |
389 | 383 | | |
390 | 384 | | |
391 | 385 | | |
| |||
1440 | 1434 | | |
1441 | 1435 | | |
1442 | 1436 | | |
1443 | | - | |
| 1437 | + | |
1444 | 1438 | | |
1445 | 1439 | | |
1446 | 1440 | | |
1447 | | - | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
1448 | 1444 | | |
1449 | 1445 | | |
1450 | 1446 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
342 | 355 | | |
0 commit comments