X7ROOT File Manager
Current Path:
/opt/alt/php54/usr/share/pear/Symfony/Component/Templating
opt
/
alt
/
php54
/
usr
/
share
/
pear
/
Symfony
/
Component
/
Templating
/
ðŸ“
..
ðŸ“
Asset
📄
DebuggerInterface.php
(694 B)
📄
DelegatingEngine.php
(2.77 KB)
📄
EngineInterface.php
(2.18 KB)
ðŸ“
Helper
ðŸ“
Loader
📄
PhpEngine.php
(15.37 KB)
ðŸ“
Storage
📄
StreamingEngineInterface.php
(1 KB)
📄
TemplateNameParser.php
(988 B)
📄
TemplateNameParserInterface.php
(811 B)
📄
TemplateReference.php
(1.87 KB)
📄
TemplateReferenceInterface.php
(1.93 KB)
📄
autoloader.php
(340 B)
Editing: TemplateNameParser.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * 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 <fabien@symfony.com> * * @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); } }
Upload File
Create Folder