Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
24 | public function starting(Application $app) : void |
||
25 | { |
||
26 | $zpk = new Zipkin($app->conf()); |
||
27 | |||
28 | DI::set(Platform::class, $zpk); |
||
29 | DI::set(Observer::class, $zpk); |
||
30 | |||
31 | $app->starting()->add(static function () use ($zpk) { |
||
32 | return $zpk->init(); |
||
33 | }); |
||
34 | |||
35 | $app->stopping()->add(static function () use ($zpk) { |
||
36 | return $zpk->leave(); |
||
37 | }); |
||
40 |