Debug.php 929B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) 2010 Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. class Twig_Extensions_Extension_Debug extends Twig_Extension
  11. {
  12. /**
  13. * Returns the token parser instance to add to the existing list.
  14. *
  15. * @return array An array of Twig_TokenParser instances
  16. */
  17. public function getTokenParsers()
  18. {
  19. return array(
  20. new Twig_Extensions_TokenParser_Debug(),
  21. );
  22. }
  23. /**
  24. * Returns a list of filters to add to the existing list.
  25. *
  26. * @return array An array of filters
  27. */
  28. public function getFilters()
  29. {
  30. return array();
  31. }
  32. /**
  33. * Returns the name of the extension.
  34. *
  35. * @return string The extension name
  36. */
  37. public function getName()
  38. {
  39. return 'debug';
  40. }
  41. }