refactor: use Dto class instead of array

This commit is contained in:
Maël Gangloff
2025-03-03 15:29:21 +01:00
parent f0c9b94754
commit 995d931f56
2 changed files with 3 additions and 10 deletions

View File

@@ -4,7 +4,6 @@ namespace App\Service\Connector;
use App\Dto\Connector\DefaultProviderDto;
use App\Entity\Domain;
use Exception;
use Psr\Cache\CacheItemInterface;
use Psr\Cache\CacheItemPoolInterface;
use Symfony\Component\DependencyInjection\Attribute\Autoconfigure;
@@ -127,12 +126,12 @@ abstract class AbstractProvider
* @throws ExceptionInterface
* @throws \Exception
*/
public function authenticate(array $authData): DefaultProviderDto
public function authenticate(array $authData): array
{
$this->authData = $this->verifyAuthData($authData);
$this->assertAuthentication();
return $this->authData;
return $authData;
}
abstract protected function getCachedTldList(): CacheItemInterface;