| 1 | <?php |
||
| 10 | class TemplateProcessor |
||
| 11 | { |
||
| 12 | /** @var TemplateFileProcessor */ |
||
| 13 | private $templateFileProcessor; |
||
| 14 | /** @var TemplateFolderProcessor */ |
||
| 15 | private $templateFolderProcessor; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param TemplateHelper $templateHelper |
||
| 19 | */ |
||
| 20 | public function __construct(TemplateHelper $templateHelper) |
||
| 21 | { |
||
| 22 | $this->templateFileProcessor = new TemplateFileProcessor($templateHelper); |
||
| 23 | $this->templateFolderProcessor = new TemplateFolderProcessor($templateHelper); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $templatePath |
||
| 28 | * @param string $outputDir |
||
| 29 | * |
||
| 30 | * @throws TargetFileExistsException |
||
| 31 | */ |
||
| 32 | public function process($templatePath, $outputDir = '.') |
||
| 40 | } |
||
| 41 |