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