From a8e9668dfd840749c37279a90b558b8838a0e5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Skowro=C5=84ski?= Date: Sun, 7 Jan 2024 17:29:18 +0100 Subject: [PATCH] Remove unused dependency --- src/Controller/Security/ConnectCheckAction.php | 3 +-- src/Controller/Security/LogoutAction.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Controller/Security/ConnectCheckAction.php b/src/Controller/Security/ConnectCheckAction.php index d4816cfd..75fee6b4 100644 --- a/src/Controller/Security/ConnectCheckAction.php +++ b/src/Controller/Security/ConnectCheckAction.php @@ -4,7 +4,6 @@ namespace App\Controller\Security; -use KnpU\OAuth2ClientBundle\Client\ClientRegistry; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\Routing\Annotation\Route; @@ -12,7 +11,7 @@ class ConnectCheckAction extends AbstractController { #[Route('/security/connect/discord/check', name: 'app_security_connect_discord_check')] - public function __invoke(ClientRegistry $clientRegistry): RedirectResponse + public function __invoke(): RedirectResponse { throw new \RuntimeException('This should never be executed!'); } diff --git a/src/Controller/Security/LogoutAction.php b/src/Controller/Security/LogoutAction.php index 41dc49ae..c47f975c 100644 --- a/src/Controller/Security/LogoutAction.php +++ b/src/Controller/Security/LogoutAction.php @@ -4,7 +4,6 @@ namespace App\Controller\Security; -use KnpU\OAuth2ClientBundle\Client\ClientRegistry; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\Routing\Annotation\Route; @@ -12,7 +11,7 @@ class LogoutAction extends AbstractController { #[Route('/security/logout', name: 'app_security_logout')] - public function __invoke(ClientRegistry $clientRegistry): RedirectResponse + public function __invoke(): RedirectResponse { throw new \RuntimeException('This should never be executed!'); }