Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class Logger |
||
15 | { |
||
16 | /** |
||
17 | * @var ContainerInterface $config |
||
18 | */ |
||
19 | protected $config; |
||
20 | |||
21 | /** |
||
22 | * @var Monolog |
||
23 | */ |
||
24 | protected $logger; |
||
25 | |||
26 | /** |
||
27 | * @param ContainerInterface $config |
||
28 | */ |
||
29 | public function __construct(ContainerInterface $config) |
||
36 | ); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param Exception $exception |
||
41 | */ |
||
42 | public function exception(Exception $exception) |
||
43 | { |
||
44 | $this->logger->warning($exception->getMessage()); |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @param string $msg |
||
49 | */ |
||
50 | public function warning(string $msg) |
||
53 | } |
||
54 | } |
||
55 |