1 | <?php |
||
17 | class AuthenticationPlugin implements Plugin |
||
18 | { |
||
19 | /** |
||
20 | * @var Authentication An authentication system |
||
21 | */ |
||
22 | private $authentication; |
||
23 | |||
24 | /** |
||
25 | * @param Authentication $authentication |
||
26 | */ |
||
27 | 3 | public function __construct(Authentication $authentication) |
|
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 1 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
|
41 | } |
||
42 |
If you suppress an error, we recommend checking for the error condition explicitly: