DebugCommand.php 881 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Bundle\TwigBundle\Command;
  11. use Symfony\Bridge\Twig\Command\DebugCommand as BaseDebugCommand;
  12. use Symfony\Component\DependencyInjection\ContainerAwareInterface;
  13. use Symfony\Component\DependencyInjection\ContainerAwareTrait;
  14. /**
  15. * Lists twig functions, filters, globals and tests present in the current project.
  16. *
  17. * @author Jordi Boggiano <j.boggiano@seld.be>
  18. */
  19. final class DebugCommand extends BaseDebugCommand implements ContainerAwareInterface
  20. {
  21. use ContainerAwareTrait;
  22. /**
  23. * {@inheritdoc}
  24. */
  25. protected function getTwigEnvironment()
  26. {
  27. return $this->container->get('twig');
  28. }
  29. }