Conditions | 3 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
34 | public static function getLoader() |
||
35 | { |
||
36 | if ( |
||
37 | !($loader = self::includeIfExists(__DIR__ . '/../../vendor/autoload.php')) |
||
38 | && !($loader = self::includeIfExists(__DIR__ . '/../../../../autoload.php')) |
||
39 | ) { |
||
40 | throw new ErrorException( |
||
41 | 'You must set up the project dependencies, run the following commands:' . PHP_EOL . |
||
42 | 'curl -s http://getcomposer.org/installer | php' . PHP_EOL . |
||
43 | 'php composer.phar install' . PHP_EOL |
||
44 | ); |
||
45 | } |
||
46 | |||
47 | return $loader; |
||
48 | } |
||
49 | |||
61 |