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 36c399f632 feature #19191 [DependencyInjection] Automatically detect the definitions class when possible (Ener-Getick)
This PR was merged into the 3.2-dev branch.

Discussion
----------

[DependencyInjection] Automatically detect the definitions class when possible

| Q             | A
| ------------- | ---
| Branch?       | "master"
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/symfony/symfony/issues/19161
| License       | MIT
| Doc PR        |

> Thanks to the features of php 7.0 we can now guess the class of a service created with a factory:
> ```php
> function myFactory(): MyServiceClass
> {
> }
> ```
>
> So I propose to create a new pass to automatically update the services definition when possible. This is particularly useful for autowiring (this way you don't have to copy-paste the class name of the service, especially when this is from a third party library).
>
> What do you think ?

Commits
-------

63afe3c [DependencyInjection] Automatically detect the definitions class when possible
2016-09-19 12:25:58 -07:00
..
containers Merge branch '2.7' into 2.8 2016-07-30 03:20:35 -04:00
directory [DI][Routing] recursive directory loading 2015-06-02 16:17:59 -07:00
graphviz [DependencyInjection] Avoid generating call_user_func in more cases 2016-05-19 10:07:44 +02:00
includes [CS] Respect PSR2 4.2 2016-06-25 13:30:09 -03:00
ini moved component and bridge unit tests to the src/ directory 2012-03-29 08:37:22 +02:00
php feature #19681 [DI] Allow injecting ENV parameters at runtime using %env(MY_ENV_VAR)% (nicolas-grekas) 2016-09-15 10:44:52 -07:00
xml Merge branch '3.0' into 3.1 2016-07-28 13:13:48 +02:00
yaml [DI] Allow injecting ENV parameters at runtime using %env(MY_ENV_VAR)% syntax 2016-09-10 12:12:34 +02:00
FactoryDummy.php [DependencyInjection] Automatically detect the definitions class when possible 2016-07-31 12:30:18 +02:00