| 1 | <?php |
||
| 9 | class Compiler extends BladeCompiler |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | private $cssFiles = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string|null |
||
| 18 | */ |
||
| 19 | protected static $cssFilesContent = null; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * EmailCompiler constructor. |
||
| 23 | * |
||
| 24 | * @param Filesystem $files |
||
| 25 | * @param string $cachePath |
||
| 26 | * @param array $cssFiles |
||
| 27 | */ |
||
| 28 | 2 | public function __construct(Filesystem $files, $cachePath, array $cssFiles) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Concat all css files. |
||
| 37 | * |
||
| 38 | * @param array $files |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 1 | protected function getCssFilesContent(array $files) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Compile the given Blade template contents. |
||
| 53 | * |
||
| 54 | * @param string $value |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | 1 | public function compileString($value) |
|
| 65 | |||
| 66 | /** |
||
| 67 | * Convert css to inline styles. |
||
| 68 | * |
||
| 69 | * @param string $value |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | 1 | protected function convertStyles($value) |
|
| 78 | } |