removed unused imports
This commit is contained in:
parent
3c09b4038d
commit
b2115a97a8
|
@ -11,7 +11,6 @@ use App\Repository\DomainRepository;
|
||||||
use App\Repository\DynDNSRepository;
|
use App\Repository\DynDNSRepository;
|
||||||
use App\Repository\PanelRepository;
|
use App\Repository\PanelRepository;
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
use OpenApi\Annotations as OA;
|
|
||||||
use OpenApi\Attributes as OAT;
|
use OpenApi\Attributes as OAT;
|
||||||
use UnhandledMatchError;
|
use UnhandledMatchError;
|
||||||
|
|
||||||
|
@ -58,13 +57,13 @@ class RequestController
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \App\Controller\ApiController $apiController
|
* @param ApiController $apiController
|
||||||
* @param \App\Repository\ApikeyRepository $apikeyRepository
|
* @param ApikeyRepository $apikeyRepository
|
||||||
* @param \App\Controller\DomainController $domainController
|
* @param DomainController $domainController
|
||||||
* @param \App\Repository\DomainRepository $domainRepository
|
* @param DomainRepository $domainRepository
|
||||||
* @param \App\Repository\DynDNSRepository $dynDNSRepository
|
* @param DynDNSRepository $dynDNSRepository
|
||||||
* @param \App\Repository\PanelRepository $panelRepository
|
* @param PanelRepository $panelRepository
|
||||||
* @param \Monolog\Logger $logger
|
* @param Logger $logger
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly ApiController $apiController,
|
private readonly ApiController $apiController,
|
||||||
|
@ -289,7 +288,7 @@ class RequestController
|
||||||
{
|
{
|
||||||
$headers = array_change_key_case(array: getallheaders(), case: CASE_UPPER);
|
$headers = array_change_key_case(array: getallheaders(), case: CASE_UPPER);
|
||||||
$apiKey = $headers['X-API-KEY'] ?? '';
|
$apiKey = $headers['X-API-KEY'] ?? '';
|
||||||
|
|
||||||
if (empty($apiKey)) {
|
if (empty($apiKey)) {
|
||||||
$this->status = "401 Unauthorized";
|
$this->status = "401 Unauthorized";
|
||||||
$this->message = "API key is missing.";
|
$this->message = "API key is missing.";
|
||||||
|
|
Loading…
Reference in New Issue