Skip to content

Commit 0f9737b

Browse files
committed
Add alias on legacy TwigEnvironment class
1 parent 134c729 commit 0f9737b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ function dcg_create_application() {
3535
// Twig versions.
3636
$twig_environment_class = sprintf('DrupalCodeGenerator\Twig\Twig%dEnvironment', Twig_Environment::MAJOR_VERSION);
3737
class_alias($twig_environment_class, 'DrupalCodeGenerator\Twig\TwigEnvironment');
38+
39+
// Legacy TwigEnvironment class is still used in Drush.
40+
class_alias($twig_environment_class, 'DrupalCodeGenerator\TwigEnvironment');

0 commit comments

Comments
 (0)