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