AsseticTokenParser.php 810B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * This file is part of the Symfony framework.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Symfony\Bundle\AsseticBundle\Twig;
  11. use Assetic\Asset\AssetInterface;
  12. use Assetic\Extension\Twig\AsseticTokenParser as BaseAsseticTokenParser;
  13. /**
  14. * Assetic token parser.
  15. *
  16. * @author Kris Wallsmith <kris@symfony.com>
  17. */
  18. class AsseticTokenParser extends BaseAsseticTokenParser
  19. {
  20. protected function createNode(AssetInterface $asset, \Twig_NodeInterface $body, array $inputs, array $filters, $name, array $attributes = array(), $lineno = 0, $tag = null)
  21. {
  22. return new AsseticNode($asset, $body, $inputs, $filters, $name, $attributes, $lineno, $tag);
  23. }
  24. }