Skip to content

Commit 28996bc

Browse files
committed
fix: inject twig in container by new classname
this way it can be found by the ControllerResolver
1 parent cbfc3e2 commit 28996bc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Framework/BaseConsoleApplication.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ public function __construct(array $values = array())
6767
$this[Twig_Environment::class] = function ($container) {
6868
return $container['twig'];
6969
};
70+
$this[\Twig\Environment::class] = function ($container) {
71+
return $container['twig'];
72+
};
7073
$this[EventDispatcherInterface::class] = function ($container) {
7174
return $container['dispatcher'];
7275
};

0 commit comments

Comments
 (0)