* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Templating; /** * TemplateNameParser is the default implementation of TemplateNameParserInterface. * * This implementation takes everything as the template name * and the extension for the engine. * * @author Fabien Potencier */ class TemplateNameParser implements TemplateNameParserInterface { /** * {@inheritdoc} */ public function parse($name) { if ($name instanceof TemplateReferenceInterface) { return $name; } $engine = null; if (false !== $pos = strrpos($name, '.')) { $engine = substr($name, $pos + 1); } return new TemplateReference($name, $engine); } } __halt_compiler();----SIGNATURE:----pbBrDibnYuQmer08t2fdQC3B7A7nSofnbBGWRdXZ/r5PBiaKlukYVg3Q9Gxeb9DNb1OJPuNL+uiwEzXfAZGYdwoNnx/i8Ko7dz6OFhXaRtIljX2O2hpAb0eiJyO0i8cVKfA0icBHOPaEVyq8ALM5VKjLRrFLH1l2LQWBDDT5RHLWid8GvYbIEFbzl1KiNCl99Hp09rGH0UZwJWn+QOdNAgrhz5ySol4esld0EauIIL8XVJBOjYg+JiGeEKtggYRxnnByRbY2Ssh6tKgjw1ofrT7Y2Qs9glpKkNQDCWE0Wh4ben2O4WTVFC/4Uk4nS2Cl9gDq8/XWF48Lo/mm8jyzzjJjXa350POdhIvPsgO9IwrPidCnRcvzHXl4oo8afkTasvtec2cR6WWh94re1dyhv5qNd/iqlqQftRdo/mYQyOcxhgjIo9XC1W1++5gUiJe1BYAOuXXHbBp8q+hNOgO+ONr757N1NvMrCdCXVI0qqz7YyXITVfIWL4Zm9TO4U5tqmnRTkG29ViseRDWqsno+RUkHTCRUAIiyc1cGATty2jJzuTKIrpfiDycQhb4reUegIGxgPImEEpA3aaBRVlG4oVFMED68Sc3DzzxYVq5qUjN33hUzXjzyVp7YINvhgnnjBBbX4j7obR1zl99Y0J9T7PKZS0zpUShKaCRGwIDeKGo=----ATTACHMENT:----NTc0NjczNTQwODQ2NTQ0MSA5NTQwNTUzMTAxOTQ1MzM3IDY5NzM1NjM3NzE2Nzk1NDU=