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

Skip to content

Commit 75c0b8a

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

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

src/Symfony/Bridge/Doctrine/ManagerRegistry.php

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

1414
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
1515
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
16-
use Symfony\Component\DependencyInjection\ContainerInterface;
1716
use Doctrine\Common\Persistence\AbstractManagerRegistry;
1817

1918
/**

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
*

src/Symfony/Component/HttpKernel/Bundle/Bundle.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\HttpKernel\Bundle;
1313

14-
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
1514
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
1615
use Symfony\Component\DependencyInjection\ContainerBuilder;
1716
use Symfony\Component\DependencyInjection\Container;

0 commit comments

Comments
 (0)