| 1 | <?php |
||
| 21 | class FileSystemLoader extends \Mustache_Loader_FilesystemLoader |
||
| 22 | { |
||
| 23 | protected $locator; |
||
| 24 | protected $parser; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Constructor. |
||
| 28 | * |
||
| 29 | * @param FileLocatorInterface $locator A FileLocatorInterface instance |
||
| 30 | * @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance |
||
| 31 | */ |
||
| 32 | public function __construct(FileLocatorInterface $locator, TemplateNameParserInterface $parser) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Helper function for getting a Mustache template file name. |
||
| 41 | * |
||
| 42 | * @param string $name |
||
| 43 | * |
||
| 44 | * @return string Template file name |
||
| 45 | */ |
||
| 46 | protected function getFileName($name) |
||
| 59 | } |
||
| 60 |