Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function preloadForPackage(PackageInterface $package) |
||
34 | { |
||
35 | $sourcePaths = $this->infoResolver->getAutoLoadPaths($package); |
||
36 | |||
37 | $matchGroups = array(); |
||
38 | |||
39 | foreach ($sourcePaths as $sourcePath) { |
||
40 | $matchGroups[] = $this->fileSystemUtils->collectPathsRecursively($sourcePath, '/.*\.php/'); |
||
41 | } |
||
42 | |||
43 | $sourceFilePaths = array_unique( |
||
44 | array_reduce($matchGroups, 'array_merge', array()) |
||
45 | ); |
||
46 | |||
47 | foreach ($sourceFilePaths as $filePath) { |
||
48 | require_once($filePath); |
||
49 | } |
||
52 |