Make LoginFormAuthenticator a service and remove Factory

This commit is contained in:
Yassine Guedidi
2024-11-23 18:47:08 +01:00
parent 81d269dec1
commit 0c49aee192
4 changed files with 30 additions and 66 deletions

View File

@ -16,7 +16,7 @@ class LoginFormAuthenticator implements Authenticator
$postFields = [
$siteConfig->getUsernameField() => $siteConfig->getUsername(),
$siteConfig->getPasswordField() => $siteConfig->getPassword(),
] + $this->getExtraFields($guzzle);
] + $this->getExtraFields($siteConfig, $guzzle);
$guzzle->post(
$siteConfig->getLoginUri(),