Skip to content

Commit

Permalink
Add Asset and Security extensions: allow function asset, is_granted a…
Browse files Browse the repository at this point in the history
…nd etc. (#46)
  • Loading branch information
eisberg authored and umpirsky committed Sep 30, 2016
1 parent 0da8daa commit 801c28b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"symfony/routing": "~3.0",
"symfony/filesystem": "~3.0",
"symfony/translation": "~3.0",
"symfony/form": "~3.0"
"symfony/form": "~3.0",
"symfony/asset": "~2.8|~3.0"
},
"require-dev": {
"symfony/config": "~3.0",
Expand Down
3 changes: 3 additions & 0 deletions twig-gettext-extractor
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ $twig->addExtension(new Symfony\Bridge\Twig\Extension\FormExtension(
new Symfony\Bridge\Twig\Form\TwigRendererEngine()
)
));
$twig->addExtension(new Symfony\Bridge\Twig\Extension\AssetExtension(
new Symfony\Component\Asset\Packages()
));
// You can add more extensions here.

array_shift($_SERVER['argv']);
Expand Down

0 comments on commit 801c28b

Please sign in to comment.