| 1 | <?php |
||
| 10 | final class LogProcessor implements ProcessorInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var LoggerInterface |
||
| 14 | */ |
||
| 15 | private $logger; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private $dontLog; |
||
| 21 | |||
| 22 | 2 | public function __construct(LoggerInterface $logger, array $dontLog = []) |
|
| 27 | |||
| 28 | 2 | public function __invoke(Throwable $exception) : Throwable |
|
| 36 | |||
| 37 | 2 | private function shouldLog(Throwable $error) : bool |
|
| 47 | } |
||
| 48 |