1 | <?php |
||
19 | final class LogThrowable extends AbstractPlugin |
||
20 | { |
||
21 | /** |
||
22 | * @var ThrowableLogger |
||
23 | */ |
||
24 | private $logger; |
||
25 | |||
26 | /** |
||
27 | * Initializes a new instance of this class. |
||
28 | * |
||
29 | * @param ThrowableLogger $logger |
||
30 | */ |
||
31 | 8 | public function __construct(ThrowableLogger $logger) |
|
35 | |||
36 | /** |
||
37 | * Called when a throwable should be logged. |
||
38 | * |
||
39 | * @param Throwable $throwable The throwable object to log. |
||
40 | */ |
||
41 | 3 | public function __invoke(Throwable $throwable) |
|
45 | } |
||
46 |