Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3.2621 |
Changes | 0 |
1 | <?php |
||
35 | 28 | public function onPluginsLoaded($data = null) |
|
36 | { |
||
37 | 28 | $this->settings['base_url'] = (new Router)->getBaseUrl(); |
|
38 | 28 | switch ($this->settings['handler']) { |
|
39 | 28 | case Plugin::HANDLER_ERROR_LOG: |
|
40 | ServiceLocator::registerService( |
||
41 | 'Phile_ErrorHandler', |
||
42 | new ErrorLog |
||
43 | ); |
||
44 | break; |
||
45 | 28 | case Plugin::HANDLER_DEVELOPMENT: |
|
46 | 28 | ServiceLocator::registerService( |
|
47 | 28 | 'Phile_ErrorHandler', |
|
48 | 28 | new Development($this->settings) |
|
49 | ); |
||
50 | 28 | break; |
|
51 | } |
||
54 |