| 1 | <?php |
||
| 8 | class TwigCompiler |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var \Twig_Environment |
||
| 13 | */ |
||
| 14 | protected $twig; |
||
| 15 | |||
| 16 | |||
| 17 | /** |
||
| 18 | * TwigCompiler constructor. |
||
| 19 | * |
||
| 20 | * @param string $templatePath |
||
| 21 | */ |
||
| 22 | public function __construct($templatePath = 'src/templates') |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return \Twig_Environment |
||
| 30 | */ |
||
| 31 | public function getTwig() |
||
| 35 | } |
||
| 36 |