TemplateNameParserInterface.php 743 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\Component\Templating;
  11. /**
  12. * TemplateNameParserInterface converts template names to TemplateReferenceInterface
  13. * instances.
  14. *
  15. * @author Fabien Potencier <fabien@symfony.com>
  16. *
  17. * @api
  18. */
  19. interface TemplateNameParserInterface
  20. {
  21. /**
  22. * Convert a template name to a TemplateReferenceInterface instance.
  23. *
  24. * @param string $name A template name
  25. *
  26. * @return TemplateReferenceInterface A template
  27. *
  28. * @api
  29. */
  30. public function parse($name);
  31. }