Skip to content

Commit

Permalink
fix: inject twig in container by new classname
Browse files Browse the repository at this point in the history
this way it can be found by the ControllerResolver
  • Loading branch information
joostfaassen committed Nov 25, 2019
1 parent cbfc3e2 commit 28996bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Framework/BaseConsoleApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public function __construct(array $values = array())
$this[Twig_Environment::class] = function ($container) {
return $container['twig'];
};
$this[\Twig\Environment::class] = function ($container) {
return $container['twig'];
};
$this[EventDispatcherInterface::class] = function ($container) {
return $container['dispatcher'];
};
Expand Down

0 comments on commit 28996bc

Please sign in to comment.