for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Charcoal\View\Php;
// PHP Dependencies
use \InvalidArgumentException;
// Parent namespace dependencies
use \Charcoal\View\AbstractLoader;
use \Charcoal\View\LoaderInterface;
/**
* The PHP template loader finds a mustache php template file in directories and includes it (run as PHP).
*/
class PhpLoader extends AbstractLoader implements LoaderInterface
{
* Convert an identifier to a file path.
*
* @param string $ident The identifier to convert.
* @return string
protected function filenameFromIdent($ident)
$filename = str_replace([ '\\' ], '.', $ident);
$filename .= '.php';
return $filename;
}