Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function init(ServiceManager $services) |
||
32 | { |
||
33 | /** @var \WebinoDebug\Options\ModuleOptions $options */ |
||
34 | $options = $services->get(ModuleOptions::class); |
||
35 | /** @var \WebinoDebug\Service\Debugger $debugger */ |
||
36 | $debugger = $services->get(DebuggerFactory::SERVICE); |
||
37 | |||
38 | // set bar title |
||
39 | $this->barTitle = $options->getBarTitle(); |
||
40 | |||
41 | // set bar info |
||
42 | foreach ($options->getBarInfo() as $name => $value) { |
||
43 | $debugger->setBarInfo($name, $value); |
||
44 | } |
||
45 | } |
||
46 | |||
63 |