1 | <?php |
||
23 | final class ClientAuthenticationMiddleware implements MiddlewareInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var AuthenticationMethodManager |
||
27 | */ |
||
28 | private $authenticationMethodManager; |
||
29 | |||
30 | /** |
||
31 | * @var ClientRepository |
||
32 | */ |
||
33 | private $clientRepository; |
||
34 | |||
35 | /** |
||
36 | * ClientAuthenticationMiddleware constructor. |
||
37 | * |
||
38 | * @param ClientRepository $clientRepository |
||
39 | * @param AuthenticationMethodManager $authenticationMethodManager |
||
40 | */ |
||
41 | public function __construct(ClientRepository $clientRepository, AuthenticationMethodManager $authenticationMethodManager) |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
62 | } |
||
63 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: