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/Tests
Fabien Potencier 2183f98f54 feature #20973 [DI] Add getter injection (nicolas-grekas)
This PR was merged into the 3.3-dev branch.

Discussion
----------

[DI] Add getter injection

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #20657
| License       | MIT
| Doc PR        | symfony/symfony-docs#7300

Getter overriding by the container will allow a new kind of dependency injection which enables easier laziness and more immutable classes, by not requiring any corresponding setter. See linked issue for more.

This is WIP:
- [x] wire the concept
- [x] dump anonymous classes with PhpDumper
- [x] generate at runtime in ContainerBuilder::createService
- [x] tests
- [x] make it work on PHP 5

Commits
-------

cb498580d1 [DI] Add getter injection
2017-01-30 11:43:35 -08:00
..
Compiler feature #20973 [DI] Add getter injection (nicolas-grekas) 2017-01-30 11:43:35 -08:00
Config [DI] Only rebuild autowiring cache when actually needed 2016-04-03 09:35:21 +02:00
Dumper [DI] Add getter injection 2017-01-28 08:49:57 +01:00
Extension fixed CS 2014-09-22 10:32:35 +02:00
Fixtures feature #20973 [DI] Add getter injection (nicolas-grekas) 2017-01-30 11:43:35 -08:00
LazyProxy fixed obsolete getMock() usage 2016-12-19 16:22:46 +01:00
Loader feature #20973 [DI] Add getter injection (nicolas-grekas) 2017-01-30 11:43:35 -08:00
ParameterBag [DI] Allow null as default env value 2016-11-23 14:12:24 +01:00
ChildDefinitionTest.php bug #21072 [DI] Fix method autowiring in ResolveDefinitionTemplatesPass (dunglas) 2016-12-30 07:43:06 +01:00
ContainerBuilderTest.php feature #20973 [DI] Add getter injection (nicolas-grekas) 2017-01-30 11:43:35 -08:00
ContainerTest.php feature #21244 [DI] Remove synthetic services from methodMap + generated methods (nicolas-grekas) 2017-01-15 08:42:11 -08:00
CrossCheckTest.php [DI] Deprecate case insentivity of service identifiers 2017-01-11 16:25:44 +01:00
DefinitionDecoratorTest.php [DI] Fix method autowiring in ResolveDefinitionTemplatesPass 2016-12-28 11:50:08 +01:00
DefinitionTest.php Merge branch '3.2' 2017-01-27 18:39:08 -08:00
ParameterTest.php removed all @covers annotations 2015-11-01 14:17:24 -08:00
ReferenceTest.php [DI] Deprecate case insentivity of service identifiers 2017-01-11 16:25:44 +01:00