Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #211 from kesslerdev/patch-1
Browse files Browse the repository at this point in the history
remove deprecated usage of getExtension
  • Loading branch information
stephpy authored Feb 18, 2019
2 parents e408d9d + 5d4f74c commit 5937b64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Twig/Node/TimelineActionThemeNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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(')
;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 5937b64

Please sign in to comment.