| 1 | <?php |
||
| 15 | final class HistoryPlugin implements Plugin |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Journal use to store request / responses / exception. |
||
| 19 | * |
||
| 20 | * @var Journal |
||
| 21 | */ |
||
| 22 | private $journal; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param Journal $journal |
||
| 26 | */ |
||
| 27 | public function __construct(Journal $journal) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
||
| 49 | } |
||
| 50 |