| 1 | <?php |
||
| 8 | class TemplateGenerator implements GeneratorInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The compiler instance. |
||
| 12 | * |
||
| 13 | * @var \Te7aHoudini\Laroute\Compilers\CompilerInterface |
||
| 14 | */ |
||
| 15 | protected $compiler; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The filesystem instance. |
||
| 19 | * |
||
| 20 | * @var \Illuminate\Filesystem\Filesystem |
||
| 21 | */ |
||
| 22 | protected $filesystem; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Create a new template generator instance. |
||
| 26 | * |
||
| 27 | * @param $compiler \Te7aHoudini\Laroute\Compilers\CompilerInterface |
||
| 28 | * @param $filesystem \Illuminate\Filesystem\Filesystem |
||
| 29 | */ |
||
| 30 | public function __construct(Compiler $compiler, Filesystem $filesystem) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Compile the template. |
||
| 39 | * |
||
| 40 | * @param $templatePath |
||
| 41 | * @param $templateData |
||
| 42 | * @param $filePath |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function compile($templatePath, array $templateData, $filePath) |
||
| 58 | |||
| 59 | public function makeDirectory($directory) |
||
| 65 | } |
||
| 66 |