Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2.0054 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 26 | public static function bootstrap(string $appRootDir, $configFn = null): void |
|
23 | { |
||
24 | 26 | if ($configFn instanceof SetupGacelaInterface) { |
|
25 | trigger_deprecation( |
||
26 | 'gacela-project/gacela', |
||
27 | '0.18', |
||
28 | '`SetupGacelaInterface` is deprecated. Use `callable(GacelaConfig)` instead.' |
||
29 | ); |
||
30 | } |
||
31 | |||
32 | 26 | $setup = self::normalizeSetup($configFn); |
|
33 | |||
34 | 26 | AbstractClassResolver::resetCache(); |
|
35 | |||
36 | 26 | Config::getInstance() |
|
37 | 26 | ->setAppRootDir($appRootDir) |
|
38 | 26 | ->setSetup($setup) |
|
39 | 26 | ->init(); |
|
40 | } |
||
58 |