fix : changement de nom de la variable entreprise pour exploitation_code
This commit is contained in:
@@ -15,7 +15,7 @@ final readonly class TokenProvider
|
||||
{
|
||||
public function __construct(
|
||||
private SoapClient $guichetClient,
|
||||
private string $entreprise,
|
||||
private string $exploitationCode,
|
||||
private ?string $zone,
|
||||
private ?string $application,
|
||||
private string $login,
|
||||
@@ -59,7 +59,7 @@ final readonly class TokenProvider
|
||||
private function createToken(): string
|
||||
{
|
||||
$profil = array_filter([
|
||||
'Entreprise' => $this->entreprise,
|
||||
'Entreprise' => $this->exploitationCode,
|
||||
'Zone' => $this->zone,
|
||||
'Application' => $this->application,
|
||||
], static fn ($v) => null !== $v && '' !== $v);
|
||||
@@ -101,6 +101,6 @@ final readonly class TokenProvider
|
||||
|
||||
private function getCacheKey(): string
|
||||
{
|
||||
return 'ednotif.token.'.hash('sha256', $this->entreprise.'|'.$this->login);
|
||||
return 'ednotif.token.'.hash('sha256', $this->exploitationCode.'|'.$this->login);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user