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