1 | <?php namespace Luminaire\Premailer\Laravel; |
||
22 | class PremailerEngine implements EngineInterface |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * The underlying view engine instance |
||
27 | * |
||
28 | * @var \Illuminate\View\Engines\EngineInterface |
||
29 | */ |
||
30 | protected $engine; |
||
31 | |||
32 | /** |
||
33 | * The "Premailer" compiler instance. |
||
34 | * |
||
35 | * @var \Illuminate\View\Compilers\CompilerInterface |
||
36 | */ |
||
37 | protected $compiler; |
||
38 | |||
39 | /** |
||
40 | * A stack of the last compiled templates |
||
41 | * |
||
42 | * @var array |
||
43 | */ |
||
44 | protected $compiled = []; |
||
45 | |||
46 | /** |
||
47 | * Create a new instance of "Premailer" view engine |
||
48 | * |
||
49 | * @param \Illuminate\View\Engines\CompilerEngine $engine |
||
50 | * @param \Luminaire\Premailer\Laravel\PremailerCompiler $compiler [description] |
||
51 | */ |
||
52 | public function __construct(EngineInterface $engine, PremailerCompiler $compiler) |
||
58 | |||
59 | /** |
||
60 | * Get the evaluated contents of the view. |
||
61 | * |
||
62 | * @param string $path |
||
63 | * @param array $data |
||
64 | * @return string |
||
65 | */ |
||
66 | public function get($path, array $data = []) |
||
78 | |||
79 | /** |
||
80 | * Get the base engine instance |
||
81 | * |
||
82 | * @return \Illuminate\View\Engines\EngineInterface |
||
83 | */ |
||
84 | public function getBaseEngine() |
||
88 | |||
89 | /** |
||
90 | * Get the compiler implementation. |
||
91 | * |
||
92 | * @return \Illuminate\View\Compilers\CompilerInterface |
||
93 | */ |
||
94 | public function getCompiler() |
||
98 | |||
99 | } |
||
100 |