This commit is contained in:
mcndave committed 2026-07-01 14:29:54 -04:00
commit 142509e9f6
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));
}