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/DependencyInjection
Fabien Potencier f756fb8b5b bug #24491 [DI] Exclude inline services declared in XML from autowiring candidates (nicolas-grekas)
This PR was merged into the 3.4 branch.

Discussion
----------

[DI] Exclude inline services declared in XML from autowiring candidates

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #24311
| License       | MIT
| Doc PR        | -

As reported in #24311, inline services should not be candidates for autowiring.
This PR fixes the issue, but is submitted against 3.4 because there is a potential BC break here, for ppl that didn't realize they relied on this (already deprecated) behavior.
We *could* not merge this PR and consider the deprecation is fine - but in practice, the WTF is hitting several ppl already AFAIK, so we should close that door IMHO.

Commits
-------

d90e7212ea [DI] Exclude inline services declared in XML from autowiring candidates
2017-10-09 10:13:32 -07:00
..
Argument [DI] Reference tagged services in config 2017-09-28 16:10:08 +02:00
Compiler [DI] Exclude inline services declared in XML from autowiring candidates 2017-10-08 16:39:03 +02:00
Config Merge branch '3.2' into 3.3 2017-06-02 11:51:43 +02:00
Dumper [DI] remove inheritdoc from dumped container 2017-10-04 18:30:17 +02:00
Exception Allow to get alternatives when ServiceNotFoundException occurs. 2017-08-17 15:22:42 +03:00
Extension Merge branch '2.8' into 3.3 2017-09-15 12:08:59 +02:00
LazyProxy [DI][ProxyManager] Pass the factory code to execute to DumperInterface::getProxyFactoryCode() 2017-07-27 19:12:50 +02:00
Loader [DI] Exclude inline services declared in XML from autowiring candidates 2017-10-08 16:39:03 +02:00
ParameterBag [DI] Remove colon from env placeholders 2017-10-08 11:22:35 +02:00
Tests bug #24491 [DI] Exclude inline services declared in XML from autowiring candidates (nicolas-grekas) 2017-10-09 10:13:32 -07:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
Alias.php [DI] Turn services and aliases private by default, with BC layer 2017-09-19 11:28:48 +02:00
CHANGELOG.md [DI] Fix missing CHANGELOG update + typo 2017-10-02 14:00:46 +02:00
ChildDefinition.php [DI] Fix private-by-default BC layer 2017-09-19 23:28:23 +02:00
composer.json minor #22913 [Yaml] Deprecate tags using colon (GuilhemN) 2017-08-04 15:29:48 +02:00
Container.php Merge branch '3.3' into 3.4 2017-10-05 16:46:27 +02:00
ContainerAwareInterface.php [DI] Clean a phpdoc 2015-11-04 19:12:53 +01:00
ContainerAwareTrait.php Merge branch '2.3' into 2.7 2015-11-04 19:50:51 +01:00
ContainerBuilder.php [DI] Fix private-by-default BC layer 2017-09-19 23:28:23 +02:00
ContainerInterface.php [DI] Add ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE 2017-08-31 23:26:27 +02:00
Definition.php Adding Definition::addError() and a compiler pass to throw errors as exceptions 2017-09-25 11:28:57 +02:00
DefinitionDecorator.php [DI] Fix Cannot declare class ...\DefinitionDecorator, because the name is already in use 2017-05-07 11:42:51 +02:00
EnvVarProcessor.php added missing @author tag for new class 2017-09-24 15:33:47 +02:00
EnvVarProcessorInterface.php [DI] EnvVarProcessorInterface: fix missing use 2017-09-29 13:52:29 +02:00
ExpressionLanguage.php [DI] Fix using private services in expressions 2017-07-25 13:50:49 +02:00
ExpressionLanguageProvider.php [DI] Fix using private services in expressions 2017-07-25 13:50:49 +02:00
LICENSE updated LICENSE year 2017-01-02 12:30:00 -08:00
Parameter.php [DependencyInjection] fix phpDoc 2016-04-11 16:45:49 +02:00
phpunit.xml.dist fail when detecting risky tests 2017-04-12 09:39:27 +02:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
Reference.php [DI] Enhance DX by throwing instead of triggering a deprecation notice 2017-03-28 08:18:44 +02:00
ResettableContainerInterface.php Implement resettable containers 2015-07-22 10:09:28 +02:00
ServiceLocator.php [DI] Remove useless state from ServiceLocator 2017-03-16 19:18:58 +01:00
ServiceSubscriberInterface.php [DI] Add and wire ServiceSubscriberInterface 2017-03-22 20:26:09 +01:00
TaggedContainerInterface.php remove api tags from code 2015-09-28 19:11:22 +02:00
TypedReference.php [DI] Restrict autowired registration to "same-vendor" namespaces 2017-04-06 11:28:30 +02:00
Variable.php [DependencyInjection] fix phpDoc 2016-04-11 16:45:49 +02:00

DependencyInjection Component

The DependencyInjection component allows you to standardize and centralize the way objects are constructed in your application.

Resources