File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 5
5
use Hyde \Framework \Hyde ;
6
6
7
7
/**
8
- * Helper methods to interact with the filecache.json file.
9
- *
10
- * @deprecated v0.20.0-dev, see https://github.com/hydephp/framework/issues/243
8
+ * Helper methods to interact with the filecache.
11
9
*/
12
10
class FileCacheService
13
11
{
14
12
public static function getFilecache (): array
15
13
{
16
- return json_decode (file_get_contents (Hyde::vendorPath ('resources/data/filecache.json ' )), true );
14
+ $ filecache = [];
15
+
16
+ $ files = glob (Hyde::vendorPath ('resources/views/**/*.blade.php ' ));
17
+
18
+ foreach ($ files as $ file ) {
19
+ $ filecache [str_replace (Hyde::vendorPath (), '' , $ file )] = [
20
+ 'unixsum ' => static ::unixsumFile ($ file ),
21
+ ];
22
+ }
23
+
24
+ return $ filecache ;
17
25
}
18
26
19
27
public static function getChecksums (): array
You can’t perform that action at this time.
0 commit comments