Skip to content

Commit aa94e6e

Browse files
94noninicolas-grekas
authored andcommitted
[TwigBundle] add alias deprecation for Twig_Environment
1 parent 0900333 commit aa94e6e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Symfony/Bundle/TwigBundle/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.3
5+
---
6+
7+
* Deprecate the `Twig_Environment` autowiring alias, use `Twig\Environment` instead
8+
49
6.2
510
---
611

src/Symfony/Bundle/TwigBundle/Resources/config/twig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
->tag('container.preload', ['class' => TemplateWrapper::class])
6969

7070
->alias('Twig_Environment', 'twig')
71+
->deprecate('symfony/twig-bundle', '6.3', 'The "%alias_id%" service alias is deprecated, use "'.Environment::class.'" or "twig" instead.')
7172
->alias(Environment::class, 'twig')
7273

7374
->set('twig.app_variable', AppVariable::class)

0 commit comments

Comments
 (0)