Skip to content

Commit 46d3f82

Browse files
committed
Use Twig\Environment
1 parent 3207d76 commit 46d3f82

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Helper/JqueryHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Ecommit\UtilBundle\Helper\UtilHelper;
1515
use Symfony\Component\Form\FormView;
1616
use Symfony\Component\OptionsResolver\OptionsResolver;
17-
use Twig_Environment;
17+
use Twig\Environment;
1818

1919
class JqueryHelper
2020
{
@@ -25,14 +25,14 @@ class JqueryHelper
2525
protected $util;
2626

2727
/**
28-
* @var Twig_Environment
28+
* @var Environment
2929
*/
3030
protected $templating;
3131

3232
/**
3333
* Constructor
3434
* @param UtilHelper $utilHelper
35-
* @param Twig_Environment $templating
35+
* @param Environment $templating
3636
*/
3737
public function __construct(UtilHelper $util, Twig_Environment $templating)
3838
{

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"symfony/property-access": "^4.2|^5.0",
2828
"symfony/translation": "^4.2|^5.0",
2929
"symfony/twig-bridge": "^4.2|^5.0",
30-
"symfony/twig-bundle": "^4.2|^5.0"
30+
"symfony/twig-bundle": "^4.2|^5.0",
31+
"twig/twig": "^2.7"
3132
},
3233
"autoload": {
3334
"psr-4": { "Ecommit\\JavascriptBundle\\": "" }

0 commit comments

Comments
 (0)