- Fixed some mistyped variables
This commit is contained in:
parent
d149e0a741
commit
2e7b46eae6
@ -20,7 +20,7 @@ class HeaderAuthenticationMiddleware implements MiddlewareInterface
|
|||||||
protected Authenticate $authorize,
|
protected Authenticate $authorize,
|
||||||
protected UserInterface $entity,
|
protected UserInterface $entity,
|
||||||
protected \Closure $loginFailedResponse,
|
protected \Closure $loginFailedResponse,
|
||||||
HeaderAuthentication $authenticator = null,
|
? HeaderAuthentication $authenticator = null,
|
||||||
) {
|
) {
|
||||||
$this->authenticator = $authenticator ?: new HeaderAuthentication($authorize);
|
$this->authenticator = $authenticator ?: new HeaderAuthentication($authorize);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,7 +19,7 @@ class PostRequestAuthenticationMiddleware implements MiddlewareInterface
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
protected UserInterface $entity,
|
protected UserInterface $entity,
|
||||||
protected \Closure $loginFailedResponse,
|
protected \Closure $loginFailedResponse,
|
||||||
PostRequestAuthentication $authenticator = null,
|
? PostRequestAuthentication $authenticator = null,
|
||||||
) {
|
) {
|
||||||
$this->authenticator = $authenticator ?: new PostRequestAuthentication(new Authenticate($entity));
|
$this->authenticator = $authenticator ?: new PostRequestAuthentication(new Authenticate($entity));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user