* * 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:----udiFCQJX1TN+qnCGVxi1H5SF7jbpIojFZJUdp4orbDY9uJeIbiCBCBdSvlQpofzT8SkLTRexogAMn06raMAOV6zLUjS7AmEiJF9EQ8lxWL50l5mZlKVc//yGhKKHTff2+2rTxRzfqsdLQpbUOXymbopg1L3/SsTHLTtsxg4Yg9crh49Us03Azg0HMmaOp+5JAR0T16llFid5sbAHSe3rDSp9b7fYoQyoYr4DBuoKbzMKwouzFR0phnZPyVoyD2XWU7r+wKtOWRYFoJZgypgQ5FEW1WbeK4xq9qfdwnnTgH6dC4W2bG1vZMcwA0aYKYljOBwr8JNwK2UvZU8mDUHbq0/Q/p3+dkEnWN4gQJKqZR4pDf3L26boM3AJh0vssK4H3UkfcIUIrA8F8u7irU/dX8EnUsPWzUJWVrgw+fOZbn4ALeUF6FAKTg4UKxBRkm0ID97kgzmfjLK2HrsvzkL1f3XfUPISWqagselJMXv5BHszZ54ZsdLsE8hgNs2xI5yjr9uJ+6Qqz9g7kyoz5UrrV3wA9J1Zn9wVk6PnBWjjJBddjSMvRVKRNyXY8WGbl5vjRyGSkUC9cLQl3SDruM+AzSQA4S12xwYIr4VRC2X72RIEcXLWFr/cg3VFhjkK6uPFr47+8aqJe1uF6zYrP1vyNJo+rRuwh3JhuukyW6d/PU8=----ATTACHMENT:----MjE5OTkxNTUxMzE1MjUxMiA3MjIxMDk4MzM4NDA0MTUyIDQ3OTMzOTM0Mzc1ODcxNzc=