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
Fabien Potencier 7744e8f802 feature #25290 [FrameworkBundle] debug:autowiring: don't list FQCN when they are aliased (nicolas-grekas)
This PR was merged into the 4.1-dev branch.

Discussion
----------

[FrameworkBundle] debug:autowiring: don't list FQCN when they are aliased

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

In order to favor type-hinting for interfaces, I propose to not list the class as explicitly autowireable when an alias exists for it.

Which means displaying only
```
  App\FooInterface
      alias to App\Foo
```

instead of
```
  App\Foo
  App\FooInterface
      alias to App\Foo
```

ping @weaverryan

Commits
-------

8cbfa1eaf3 [FrameworkBundle] debug:autowiring: don't list FQCN when they are aliased
2017-12-07 18:46:54 -08:00
..
Bridge feature #25346 [DoctrineBridge] DoctrineDataCollector comments the non runnable part of the query (Simperfit) 2017-12-07 08:54:57 -08:00
Bundle feature #25290 [FrameworkBundle] debug:autowiring: don't list FQCN when they are aliased (nicolas-grekas) 2017-12-07 18:46:54 -08:00
Component feature #24375 [Serializer] Serialize and deserialize from abstract classes (sroze) 2017-12-07 10:34:02 -08:00