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

Skip to content

Commit 14c65e3

Browse files
[DI] Fix DefinitionDecorator deprecation layer
1 parent 4a597bd commit 14c65e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/DependencyInjection/ChildDefinition.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
1515
use Symfony\Component\DependencyInjection\Exception\OutOfBoundsException;
1616

17+
class_alias(ChildDefinition::class, DefinitionDecorator::class);
18+
1719
/**
1820
* This definition extends another definition.
1921
*

src/Symfony/Component/DependencyInjection/DefinitionDecorator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@
2020
*
2121
* @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.
2222
*/
23-
class DefinitionDecorator extends ChildDefinition
24-
{
25-
}
23+
class_exists(ChildDefinition::class);

0 commit comments

Comments
 (0)