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/Component
Fabien Potencier ac3bd146a3 feature #36535 [DI] skip preloading dependencies of non-preloaded services (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[DI] skip preloading dependencies of non-preloaded services

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

Suggested by @stof on Slack: this improves preloading by propagating the `container.no_preload` tag to services that are referenced only by not-preloaded services.

The benefit is double:
1. this fixes potential over-preloading
2. this requires less work from the community: no need to add the tag anymore most of the time

As a corollary, listeners of console events are tagged with `container.no_preload` automatically now.

Commits
-------

add867020a [DI] skip preloading dependencies of non-preloaded services
2020-04-24 10:23:03 +02:00
..
Asset Use is_file() instead of file_exists() where possible 2020-04-24 00:29:19 +02:00
BrowserKit Merge branch '5.0' 2020-03-30 13:43:41 +02:00
Cache Use is_file() instead of file_exists() where possible 2020-04-24 00:29:19 +02:00
Config Use is_file() instead of file_exists() where possible 2020-04-24 00:29:19 +02:00
Console Make the Cursor class final 2020-04-12 14:38:26 +02:00
CssSelector Merge branch '5.0' 2020-03-30 13:43:41 +02:00
DependencyInjection feature #36535 [DI] skip preloading dependencies of non-preloaded services (nicolas-grekas) 2020-04-24 10:23:03 +02:00
DomCrawler Merge branch '5.0' 2020-03-30 13:43:41 +02:00
Dotenv Use is_file() instead of file_exists() where possible 2020-04-24 00:29:19 +02:00
ErrorHandler Use is_file() instead of file_exists() where possible 2020-04-24 00:29:19 +02:00
EventDispatcher [DI] skip preloading dependencies of non-preloaded services 2020-04-23 23:57:44 +02:00
ExpressionLanguage Merge branch '5.0' 2020-04-15 18:09:08 +02:00
Filesystem Fix test 2020-04-12 18:54:01 +02:00
Finder Merge branch '5.0' 2020-03-30 13:43:41 +02:00
Form Merge branch '5.0' 2020-04-18 22:50:29 +02:00
HttpClient Merge branch '5.0' 2020-04-12 18:48:26 +02:00
HttpFoundation Merge branch '5.0' 2020-04-18 22:50:29 +02:00
HttpKernel Use is_file() instead of file_exists() where possible 2020-04-24 00:29:19 +02:00
Inflector Merge branch '5.0' 2020-03-30 13:43:41 +02:00
Intl Merge branch '5.0' 2020-04-12 16:42:09 +02:00
Ldap Merge branch '5.0' 2020-04-12 19:09:07 +02:00
Lock [Lock] fix tests for MongoDB 2020-04-12 13:23:14 +02:00
Mailer [Mailer] Don't dispatch MessageEvent twice 2020-04-22 17:34:22 +02:00
Messenger Improve SQS interoperability 2020-04-23 11:05:32 +02:00
Mime Merge branch '5.0' 2020-04-18 22:50:29 +02:00
Notifier [Notifier] Fix error handling for Free mobile 2020-04-21 16:08:57 +02:00
OptionsResolver remove not needed BC layer 2020-04-21 09:24:21 +02:00
Process Merge branch '5.0' 2020-04-15 18:09:08 +02:00
PropertyAccess Merge branch '5.0' 2020-04-15 18:09:08 +02:00
PropertyInfo Merge branch '5.0' 2020-04-06 12:46:53 +02:00
Routing fix merge (ter) 2020-04-21 23:41:31 +02:00
Security Merge branch '5.0' 2020-04-21 23:19:50 +02:00
Serializer Merge branch '5.0' 2020-04-12 18:48:26 +02:00
Stopwatch Merge branch '5.0' 2020-03-30 13:43:41 +02:00
String minor #35945 Leverage PHP8's get_debug_type() (nicolas-grekas) 2020-03-16 18:33:00 +01:00
Templating Merge branch '5.0' 2020-03-30 13:43:41 +02:00
Translation Merge branch '5.0' 2020-04-12 18:48:26 +02:00
Uid [Uid] Improve the code 2020-03-31 20:10:27 +02:00
Validator Merge branch '5.0' 2020-04-12 18:48:26 +02:00
VarDumper Use is_file() instead of file_exists() where possible 2020-04-24 00:29:19 +02:00
VarExporter Merge branch '5.0' 2020-04-15 18:09:08 +02:00
WebLink Merge branch '5.0' 2020-03-30 13:43:41 +02:00
Workflow Merge branch '5.0' 2020-04-10 23:23:06 +02:00
Yaml Use ExpectDeprecationTrait 2020-04-16 18:52:30 +02:00