1 | <?php |
||
22 | class LoggerProvider |
||
23 | { |
||
24 | /** |
||
25 | * @var Config |
||
26 | */ |
||
27 | protected $config; |
||
28 | |||
29 | /** |
||
30 | * The handlers. |
||
31 | * |
||
32 | * @var HandlerInterface[] |
||
33 | */ |
||
34 | protected $handlers; |
||
35 | |||
36 | /** |
||
37 | * The logger. |
||
38 | * |
||
39 | * @var LoggerInterface |
||
40 | */ |
||
41 | protected $logger; |
||
42 | |||
43 | /** |
||
44 | * Create commander object. |
||
45 | * |
||
46 | * @param Config $config |
||
47 | */ |
||
48 | 6 | public function __construct(Config $config) |
|
52 | |||
53 | /** |
||
54 | * Get handlers. |
||
55 | * |
||
56 | * @return HandlerInterface[] |
||
57 | */ |
||
58 | 6 | public function getHandlers() |
|
73 | |||
74 | /** |
||
75 | * Get logger. |
||
76 | * |
||
77 | * @return LoggerInterface |
||
78 | */ |
||
79 | 2 | public function getLogger() |
|
93 | } |
||
94 |