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