Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function init(ServiceManager $services) |
||
37 | { |
||
38 | /** @var \WebinoDebug\Options\ModuleOptions $options */ |
||
39 | $options = $services->get(ModuleOptions::class); |
||
40 | /** @var \WebinoDebug\Service\Debugger $debugger */ |
||
41 | $debugger = $services->get(DebuggerFactory::SERVICE); |
||
42 | |||
43 | // set bar title |
||
44 | $this->barTitle = $options->getBarTitle(); |
||
45 | |||
46 | // set bar info |
||
47 | foreach ($options->getBarInfo() as $name => $value) { |
||
48 | $debugger->setBarInfo($name, $value); |
||
49 | } |
||
50 | |||
51 | // remember system root |
||
52 | $this->root = realpath('.'); |
||
53 | } |
||
54 | |||
72 |