/opt/alt/php54/usr/share/pear/Symfony/Component/Templating
NameSizeModeActions
Asset/-0755rm
Helper/-0755rm
Loader/-0755rm
Storage/-0755rm
autoloader.php3400644editdlrm
DebuggerInterface.php6940644editdlrm
DelegatingEngine.php28350644editdlrm
EngineInterface.php22290644editdlrm
PhpEngine.php157370644editdlrm
StreamingEngineInterface.php10250644editdlrm
TemplateNameParser.php9880644editdlrm
TemplateNameParserInterface.php8110644editdlrm
TemplateReference.php19170644editdlrm
TemplateReferenceInterface.php19790644editdlrm
Edit: /opt/alt/php54/usr/share/pear/Symfony/Component/Templating/TemplateNameParser.php (988B)
* * 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 * * @api */ class TemplateNameParser implements TemplateNameParserInterface { /** * {@inheritdoc} * * @api */ 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); } }