Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c929957

Browse filesBrowse files
committed
trigger deprecation notice for ContainerAware
1 parent 07f90a6 commit c929957
Copy full SHA for c929957

File tree

2 files changed

+3
-0
lines changed
Filter options

2 files changed

+3
-0
lines changed

‎src/Symfony/Component/DependencyInjection/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/CHANGELOG.md
+1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/ContainerAware.php
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.