Commit 3448023
committed
bug symfony#60942 [FrameworkBundle] fix
This PR was merged into the 7.4 branch.
Discussion
----------
[FrameworkBundle] fix `lint:container` command
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix symfony#60920
| License | MIT
This PR resolves two issues related to the `lint:container` command:
1) Incorrect use of `isDebug()` method: The `isDebug() `method was being called on the `$container`, but this method does not exist there. The correct call should be on the `$kernel` instance.
2) Issue during container unserialization: When unserializing the dumped container to retrieve the `ContainerBuilder`, problem was with the service aliases. The `public` property was not correctly initialized because the constructor is bypassed during unserialization.
Commits
-------
0196be5 [FrameworkBundle] fix `lint:container` commandlint:container command (santysisi)File tree
2 files changed
+4
-2
lines changed- src/Symfony
- Bundle/FrameworkBundle/Command
- Component/DependencyInjection
2 files changed
+4
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
0 commit comments