Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d614193

Browse files
minor #20968 [DI] Fix DefinitionDecorator existency for composer authoritative+IDEs (nicolas-grekas)
This PR was merged into the 3.3-dev branch. Discussion ---------- [DI] Fix DefinitionDecorator existency for composer authoritative+IDEs | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - So that the class is defined for naive parser (e.g. IDEs & composer class map generator). Fixes autoloading in authoritative mode. Commits ------- 9c3f755 [DI] Fix DefinitionDecorator existency for composer authoritative+IDEs
2 parents c885d23 + 9c3f755 commit d614193

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Symfony/Component/DependencyInjection/DefinitionDecorator.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@
1313

1414
@trigger_error('The '.__NAMESPACE__.'\DefinitionDecorator class is deprecated since version 3.3 and will be removed in 4.0. Use the Symfony\Component\DependencyInjection\ChildDefinition class instead.', E_USER_DEPRECATED);
1515

16+
class_exists(ChildDefinition::class);
17+
18+
return;
19+
1620
/**
1721
* This definition decorates another definition.
1822
*
1923
* @author Johannes M. Schmitt <[email protected]>
2024
*
2125
* @deprecated The DefinitionDecorator class is deprecated since version 3.3 and will be removed in 4.0. Use the Symfony\Component\DependencyInjection\ChildDefinition class instead.
2226
*/
23-
class_exists(ChildDefinition::class);
27+
class DefinitionDecorator extends Definition
28+
{
29+
}

0 commit comments

Comments
 (0)