1 | <?php |
||
9 | class Compiler |
||
10 | { |
||
11 | /** |
||
12 | * The filesystem instance. |
||
13 | * |
||
14 | * @var \Illuminate\Filesystem\Filesystem |
||
15 | */ |
||
16 | protected $files; |
||
17 | |||
18 | /** |
||
19 | * Blade Engine. |
||
20 | * |
||
21 | * @var \Illuminate\View\Factory |
||
22 | */ |
||
23 | protected $view; |
||
24 | |||
25 | /** |
||
26 | * View Context. |
||
27 | * |
||
28 | * @var \SocialiteProviders\Generators\Contexts\Stub |
||
29 | */ |
||
30 | protected $context; |
||
31 | |||
32 | /** |
||
33 | * Create a new compiler instance. |
||
34 | * |
||
35 | * @param array $data |
||
36 | */ |
||
37 | public function __construct(array $data) |
||
43 | |||
44 | /** |
||
45 | * Generate the composer.json. |
||
46 | */ |
||
47 | public function composer() |
||
51 | |||
52 | /** |
||
53 | * Generate the target file from a stub. |
||
54 | * |
||
55 | * @param $stub |
||
56 | * @param $targetLocation |
||
57 | */ |
||
58 | protected function compile($stub, $targetLocation) |
||
72 | } |
||
73 |