Add an auto_alias compiler pass

Discussion see https://github.com/symfony/symfony/issues/11460

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | [#11460]
| License       | MIT
| Doc PR        |
Can you add a dot at the end of each exception message?