StaticTokenParser.php 707 B

123456789101112131415161718192021222324252627
  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\Extension\Twig\AsseticTokenParser;
  12. /**
  13. * Parses an Assetic tag.
  14. *
  15. * @author Kris Wallsmith <kris.wallsmith@symfony.com>
  16. */
  17. class StaticTokenParser extends AsseticTokenParser
  18. {
  19. static protected function createNode(\Twig_NodeInterface $body, array $inputs, array $filters, array $attributes, $lineno = 0, $tag = null)
  20. {
  21. return new StaticNode($body, $inputs, $filters, $attributes, $lineno, $tag);
  22. }
  23. }