1 | <?php |
||
18 | final class ThrowableLogger |
||
19 | { |
||
20 | /** |
||
21 | * @var LoggerInterface |
||
22 | */ |
||
23 | private $logger; |
||
24 | |||
25 | /** |
||
26 | * Initializes a new instance of this class. |
||
27 | * |
||
28 | * @param LoggerInterface $logger |
||
29 | */ |
||
30 | 25 | public function __construct(LoggerInterface $logger) |
|
34 | |||
35 | /** |
||
36 | * Logs a throwable object. |
||
37 | * |
||
38 | * @param Throwable $throwable The throwable object to log. |
||
39 | * @return void |
||
40 | */ |
||
41 | 12 | public function logThrowable(Throwable $throwable) |
|
54 | } |
||
55 |