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
Fabien Potencier 5b6928dbe9 bug #22657 [DI] Fix Cannot declare class ...\DefinitionDecorator, because the name is already in use (ogizanagi)
This PR was merged into the 3.3-dev branch.

Discussion
----------

[DI] Fix Cannot declare class ...\DefinitionDecorator, because the name is already in use

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #21369
| License       | MIT
| Doc PR        | N/A

The `return` trick doesn't seem to work, and php is still trying to declare the `DefinitionDecorator` class, which causes the "Cannot declare class ...\DefinitionDecorator, because the name is already in use" error because of the `class_alias` previously declared in `ChildDefinition.php`.

This never happens as soon as the `ChildDefinition` class is used first, as the alias will take hand, but their are some situations, like in some unit test cases it can happen apparently, because `DefinitionDecorator` is used first.

Commits
-------

530849e4b5 [DI] Fix Cannot declare class ...\DefinitionDecorator, because the name is already in use
2017-05-07 08:20:56 -07:00
..
Asset Merge branch '3.2' 2017-05-01 08:01:29 -07:00
BrowserKit Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Cache [Cache] Keep only hit/miss (not values) in TraceableAdapter/Cache 2017-04-19 11:39:36 +02:00
ClassLoader Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Config [Config] Fix resource tracking with new GlobResource 2017-05-03 15:21:08 +02:00
Console Avoid reflection-based registration for command public services 2017-04-29 11:46:23 +02:00
CssSelector Merge branch '3.2' 2017-05-01 08:01:29 -07:00
Debug feature #21502 Persist app bootstrapping logs for logger datacollector (ScullWM, nicolas-grekas) 2017-04-20 11:12:40 -06:00
DependencyInjection bug #22657 [DI] Fix Cannot declare class ...\DefinitionDecorator, because the name is already in use (ogizanagi) 2017-05-07 08:20:56 -07:00
DomCrawler Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Dotenv Fix misprint. 2017-04-27 10:47:28 +03:00
EventDispatcher Merge branch '3.2' 2017-05-04 14:23:07 +02:00
ExpressionLanguage Merge branch '3.2' 2017-05-01 08:01:29 -07:00
Filesystem Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Finder Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Form [FrameworkBundle] Restore 3.2-like behavior for FormPass, to help BC with Sonata 2017-04-20 15:25:36 +02:00
HttpFoundation Merge branch '3.2' 2017-05-01 08:01:29 -07:00
HttpKernel bumped Symfony version to 3.3.0 2017-05-01 11:49:34 -07:00
Inflector Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Intl Merge branch '3.2' 2017-05-01 08:01:29 -07:00
Ldap Merge branch '3.2' 2017-04-12 07:14:56 -07:00
OptionsResolver Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Process [Process] Ecaping of CLI arguments containing slashes on Windows 2017-04-29 08:36:12 -07:00
PropertyAccess Merge branch '3.2' 2017-04-12 07:14:56 -07:00
PropertyInfo Merge branch '3.2' 2017-04-19 22:25:39 +02:00
Routing [DI] Make tagged abstract services throw earlier 2017-04-13 15:45:25 +02:00
Security Merge branch '3.2' 2017-05-01 08:01:29 -07:00
Serializer Merge branch '3.2' 2017-05-01 08:01:29 -07:00
Stopwatch Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Templating Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Translation Merge branch '3.2' 2017-04-12 07:14:56 -07:00
Validator [Validator] Update Galician (gl) translations 2017-05-02 18:40:49 +02:00
VarDumper Merge branch '3.2' 2017-05-01 08:01:29 -07:00
WebLink fail when detecting risky tests 2017-04-12 07:15:58 -07:00
Workflow Move ValidateWorkflowsPass to the Workflow component 2017-04-14 12:36:38 +02:00
Yaml Merge branch '3.2' 2017-05-01 08:01:29 -07:00