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/Fixtures
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
..
containers [DI] Add getter injection 2017-01-28 08:49:57 +01:00
directory [DI][Routing] recursive directory loading 2015-06-02 16:17:59 -07:00
graphviz [DI][EventDispatcher] Add & wire closure-proxy argument type 2017-01-06 08:57:26 +01:00
includes Merge branch '3.2' 2017-01-23 09:28:52 +01:00
ini [DI] FileLoaders: Allow to explicit type to load 2017-01-10 12:54:54 +01:00
php [DI] Add getter injection 2017-01-28 08:49:57 +01:00
xml [DI] Add getter injection 2017-01-28 08:49:57 +01:00
yaml feature #20973 [DI] Add getter injection (nicolas-grekas) 2017-01-30 11:43:35 -08:00
CaseSensitiveClass.php [DI] Add tests for class named services 2017-01-07 16:55:01 +01:00
CustomDefinition.php [DI] Fixed custom services definition BC break introduced in ec7e70fb… 2016-11-24 11:34:23 +01:00
FactoryDummy.php [DependencyInjection] Automatically detect the definitions class when possible 2016-07-31 12:30:18 +02:00