Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
18 | 1 | public function __construct(string $composerJsonPath) |
|
19 | { |
||
20 | 1 | $composerJson = json_decode(file_get_contents($composerJsonPath), true); |
|
21 | 1 | $this->configVendorDir = dirname($composerJsonPath) . '/' . ($composerJson['config']['vendor-dir'] ?? 'vendor'); |
|
22 | 1 | $this->composerAutoloader = include $this->configVendorDir . '/autoload.php'; |
|
23 | 1 | } |
|
36 |