1 | <?php |
||
10 | class GuestMiddleware implements MiddlewareInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var RouterInterface |
||
14 | */ |
||
15 | protected $router; |
||
16 | |||
17 | /** |
||
18 | * @var Sentinel |
||
19 | */ |
||
20 | protected $sentinel; |
||
21 | |||
22 | /** |
||
23 | * Constructor. |
||
24 | * |
||
25 | * @param RouterInterface $router |
||
26 | * @param Sentinel $sentinel |
||
27 | */ |
||
28 | public function __construct(RouterInterface $router, Sentinel $sentinel) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function __invoke(Request $request, Response $response, callable $next) |
||
45 | } |
||
46 |