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