diff --git a/bindAPI/src/Controller/RequestController.php b/bindAPI/src/Controller/RequestController.php index fe3a48f..c4d9785 100644 --- a/bindAPI/src/Controller/RequestController.php +++ b/bindAPI/src/Controller/RequestController.php @@ -2,7 +2,6 @@ namespace App\Controller; -use PDO; use UnhandledMatchError; /** @@ -16,14 +15,14 @@ class RequestController private String $message; /** - * @param \PDO $dbConnection - * @param String $requestMethod - * @param array $uri + * @param \App\Controller\DatabaseConnection $databaseConnection + * @param String $requestMethod + * @param array $uri */ - public function __construct(private PDO $dbConnection, private String $requestMethod, private array $uri) + public function __construct(private DatabaseConnection $databaseConnection, private String $requestMethod, private array $uri) { $this->requestMethod = strtoupper($requestMethod); - $this->domainController = new DomainController($dbConnection); + $this->domainController = new DomainController($this->databaseConnection); } @@ -76,7 +75,7 @@ class RequestController return false; } else { [$prefix,] = explode('.', $apiKey); - $apiUsers = new ApiKeys($this->dbConnection); + $apiUsers = new ApiKeys($this->databaseConnection); $apiResult = $apiUsers->findByPrefix($prefix); $storedHash = $apiResult['api_token'];