This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/FrameworkBundle
Nicolas Grekas b81f4280df bug #34862 [FrameworkBundle][ContainerLintCommand] Reinitialize bundles when the container is reprepared (fancyweb)
This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle][ContainerLintCommand] Reinitialize bundles when the container is reprepared

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Some bundles extensions are "instances dependents", eg they cache service registrations (eg: 70dec3c8a3/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php (L743)).

Launching the lint command loads all bundles a first time, just to be able to run the command.

Then, when we build the container again for the lint command, it loads all bundles a second time. But since it's the same bundles instances, some services are not registered, leading to missing services in `CheckExceptionOnInvalidReferenceBehaviorPass`.

Commits
-------

31975e4981 [FrameworkBundle][ContainerLintCommand] Reinitialize bundles when the container is reprepared
2019-12-10 11:48:48 +01:00
..
CacheWarmer [Validator] Deprecated CacheInterface in favor of PSR-6. 2019-09-05 14:29:38 +02:00
Command [FrameworkBundle][ContainerLintCommand] Reinitialize bundles when the container is reprepared 2019-12-06 20:06:44 +01:00
Console Merge branch '3.4' into 4.3 2019-11-26 04:44:44 +01:00
Controller Merge branch '4.3' into 4.4 2019-12-10 11:33:21 +01:00
DataCollector Deprecate things that prevent \Throwable from bubbling down 2019-11-05 18:23:20 +01:00
DependencyInjection minor #34653 [FrameworkBundle][Lock] fix interface for definition (xabbuh) 2019-11-27 20:03:09 +01:00
EventListener Merge branch '4.3' into 4.4 2019-09-06 16:33:21 +02:00
HttpCache removed unneeded phpdocs 2019-08-06 08:19:29 +02:00
Kernel Merge branch '3.4' into 4.3 2019-08-14 14:26:46 +02:00
Resources Add preview mode support for Html and Serializer error renderers 2019-11-28 08:51:03 +01:00
Routing Merge branch '4.3' into 4.4 2019-10-30 14:23:44 +01:00
Secrets [FrameworkBundle][SodiumVault] Create secrets directory only when needed 2019-12-04 18:30:15 +01:00
Templating Add types to constructors and private/final/internal methods (Batch III) 2019-10-07 13:33:25 +02:00
Test Merge branch '4.3' into 4.4 2019-11-05 17:11:08 +01:00
Tests bug #34562 [DI] Skip unknown method calls for factories in check types pass (fancyweb) 2019-11-28 13:12:35 +01:00
Translation Merge branch '4.3' into 4.4 2019-11-17 11:10:42 +01:00
.gitattributes Add .gitignore to .gitattributes 2019-10-12 01:35:04 +01:00
.gitignore
CHANGELOG.md [FrameworkBundle] fix leftover mentioning "secret:" processor 2019-11-24 19:10:25 +01:00
Client.php Simplify usage of dirname() 2019-09-10 13:22:25 +02:00
composer.json Merge branch '4.3' into 4.4 2019-11-28 15:12:27 +01:00
FrameworkBundle.php [ErrorHandler] merge and remove the ErrorRenderer component 2019-11-10 18:54:30 +01:00
KernelBrowser.php [FramworkBundle][HttpKernel] fix KernelBrowser BC layer 2019-06-05 18:18:19 +02:00
LICENSE update year in license files 2019-01-01 14:45:19 +01:00
phpunit.xml.dist Merge branch '2.8' into 3.4 2018-11-11 20:48:54 +01:00
README.md add readme files where missing 2016-03-07 11:36:15 +01:00