From 807ebac08ce0c7d0e0f9d2a69dc73c7f3c934da8 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 2 Nov 2015 16:37:36 +0100 Subject: [PATCH] [DI] Deprecate ContainerAware in favor of ContainerAwareTrait --- src/Symfony/Component/DependencyInjection/CHANGELOG.md | 1 + src/Symfony/Component/DependencyInjection/ContainerAware.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Symfony/Component/DependencyInjection/CHANGELOG.md b/src/Symfony/Component/DependencyInjection/CHANGELOG.md index fa29930c75..da905c188d 100644 --- a/src/Symfony/Component/DependencyInjection/CHANGELOG.md +++ b/src/Symfony/Component/DependencyInjection/CHANGELOG.md @@ -4,6 +4,7 @@ CHANGELOG 2.8.0 ----- + * deprecated the abstract ContainerAware class in favor of ContainerAwareTrait * deprecated IntrospectableContainerInterface, to be merged with ContainerInterface in 3.0 * allowed specifying a directory to recursively load all configuration files it contains * deprecated the concept of scopes diff --git a/src/Symfony/Component/DependencyInjection/ContainerAware.php b/src/Symfony/Component/DependencyInjection/ContainerAware.php index af977fea03..d85fab1843 100644 --- a/src/Symfony/Component/DependencyInjection/ContainerAware.php +++ b/src/Symfony/Component/DependencyInjection/ContainerAware.php @@ -15,6 +15,8 @@ namespace Symfony\Component\DependencyInjection; * A simple implementation of ContainerAwareInterface. * * @author Fabien Potencier + * + * @deprecated since version 2.8, to be removed in 3.0. Use the ContainerAwareTrait instead. */ abstract class ContainerAware implements ContainerAwareInterface {