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

Skip to content

Commit c929957

Browse files
committed
trigger deprecation notice for ContainerAware
1 parent 07f90a6 commit c929957

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Symfony/Component/DependencyInjection/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
-----
66

77
* removed all deprecated codes from 2.x versions
8+
* deprecated abstract ContainerAware class in favor of ContainerAwareTrait
89

910
2.8.0
1011
-----

src/Symfony/Component/DependencyInjection/ContainerAware.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\DependencyInjection;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\ContainerAware class is deprecated since version 3.0 and will be removed in 4.0. Use ContainerAwareTrait with ContainerAwareInterface instead.', E_USER_DEPRECATED);
15+
1416
/**
1517
* A simple implementation of ContainerAwareInterface.
1618
*

0 commit comments

Comments
 (0)