| 1 | <?php |
||
| 21 | final class LogThrowable extends AbstractHelper |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var ThrowableLogger |
||
| 25 | */ |
||
| 26 | private $logger; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Initializes a new instance of this class. |
||
| 30 | * |
||
| 31 | * @param ThrowableLogger $logger |
||
| 32 | */ |
||
| 33 | 8 | public function __construct(ThrowableLogger $logger) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Called when the view helper is invoked. |
||
| 40 | * |
||
| 41 | * @param Throwable $throwable The throwable object to log. |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | 3 | public function __invoke(Throwable $throwable) |
|
| 48 | } |
||
| 49 |