Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function run(): void |
||
19 | { |
||
20 | $manifest = new Collection(); |
||
21 | |||
22 | /** @var \Hyde\Framework\Contracts\AbstractPage $page */ |
||
23 | foreach (Hyde::pages() as $page) { |
||
24 | $manifest->push([ |
||
|
|||
25 | 'page' => $page->getSourcePath(), |
||
26 | 'source_hash' => md5(Hyde::path($page->getSourcePath())), |
||
27 | 'output_hash' => md5(Hyde::path($page->getOutputPath())), |
||
28 | ]); |
||
29 | } |
||
30 | |||
31 | file_put_contents(Hyde::path(config('hyde.build_manifest_path', |
||
32 | 'storage/framework/cache/build-manifest.json') |
||
33 | ), $manifest->toJson()); |
||
34 | } |
||
36 |