| 1 | <?php |
||
| 16 | class HistoryPlugin implements Plugin |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Journal use to store request / responses / exception. |
||
| 20 | * |
||
| 21 | * @var Journal |
||
| 22 | */ |
||
| 23 | private $journal; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param Journal $journal |
||
| 27 | */ |
||
| 28 | 3 | public function __construct(Journal $journal) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 2 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
|
| 50 | } |
||
| 51 |
If you suppress an error, we recommend checking for the error condition explicitly: