Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function init() |
||
35 | { |
||
36 | $config = \BFW\Application::getInstance()->getConfig(); |
||
|
|||
37 | $this->monolog = new \BFW\Monolog('bfw', $config); |
||
38 | $this->monolog->addAllHandlers('handlers', 'monolog.php'); |
||
39 | |||
40 | $this->monolog->getLogger()->debug( |
||
41 | 'Currently during the initialization framework step.' |
||
42 | ); |
||
43 | |||
44 | $this->initStatus = true; |
||
45 | } |
||
46 | } |
||
47 |
If you implement
__call
and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__call
is implemented by a parent class and only the child class knows which methods exist: