diff --git a/Twig/Node/TimelineActionThemeNode.php b/Twig/Node/TimelineActionThemeNode.php index 4d0bb7d..1eae0a6 100644 --- a/Twig/Node/TimelineActionThemeNode.php +++ b/Twig/Node/TimelineActionThemeNode.php @@ -2,6 +2,8 @@ namespace Spy\TimelineBundle\Twig\Node; +use Spy\TimelineBundle\Twig\Extension\TimelineExtension; + class TimelineActionThemeNode extends \Twig_Node { public function __construct(\Twig_NodeInterface $action, \Twig_NodeInterface $resources, array $attributes = array(), $lineno = 0, $tag = null) @@ -16,7 +18,7 @@ public function compile(\Twig_Compiler $compiler) { $compiler ->addDebugInfo($this) - ->write('echo $this->env->getExtension(\'timeline_render\')->setTheme(') + ->write('echo $this->env->getExtension(\''.TimelineExtension::class.'\')->setTheme(') ->subcompile($this->getNode('action')) ->raw(', array(') ; diff --git a/composer.json b/composer.json index 0f94379..4007eb3 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "atoum/atoum": "1.*|3.*", "doctrine/orm": "^2.6", "symfony/console": "~2.0|~3.0|~4.0", - "symfony/twig-bundle": "~2.0|~3.0|~4.0", + "symfony/twig-bundle": "~2.8.13|~3.0|~4.0", "symfony/expression-language": "~2.0|~3.0|~4.0" }, "suggest": {