Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public static function buildComponents(Event $event) |
||
12 | { |
||
13 | $config = self::getConfigurations($event); |
||
14 | |||
15 | $fileHandle = new FileHandle(); |
||
16 | $processor = new Processor($fileHandle); |
||
17 | |||
18 | $files = glob("{$config['componentsDir']}/**/index.php"); |
||
19 | |||
20 | foreach ($files as $file) { |
||
21 | $fileHandle->write( |
||
22 | $file, |
||
23 | $processor->compile($file), |
||
24 | "{$config['componentsDir']}/_static" |
||
25 | ); |
||
54 |