TemplateNameParser.php 836 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien.potencier@symfony-project.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. * TemplateNameParser is the default implementation of TemplateNameParserInterface.
  13. *
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. */
  16. class TemplateNameParser implements TemplateNameParserInterface
  17. {
  18. /**
  19. * Parses a template to a template name and an array of options.
  20. *
  21. * @param string $name A template name
  22. *
  23. * @return array An array composed of the template name and an array of options
  24. */
  25. public function parse($name)
  26. {
  27. return array($name, array());
  28. }
  29. }