fix: use short class names in MarketplaceController (add use imports)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 19:05:12 +01:00
parent da5864d5a2
commit 72b9de7ad2

View File

@@ -10,6 +10,8 @@ use App\Core\Security\Csrf;
use App\Core\Support\Flash;
use App\Core\View\Template;
use App\Modules\Auth\AuthService;
use App\Modules\Settings\IntegrationRepository;
use App\Modules\Settings\ShopProClient;
final class MarketplaceController
{
@@ -18,8 +20,8 @@ final class MarketplaceController
private readonly Translator $translator,
private readonly AuthService $auth,
private readonly MarketplaceRepository $marketplace,
private readonly \App\Modules\Settings\IntegrationRepository $integrationRepository,
private readonly \App\Modules\Settings\ShopProClient $shopProClient
private readonly IntegrationRepository $integrationRepository,
private readonly ShopProClient $shopProClient
) {
}
@@ -157,7 +159,7 @@ final class MarketplaceController
}
$csrfToken = (string) ($body['_token'] ?? '');
if (!\App\Core\Security\Csrf::validate($csrfToken)) {
if (!Csrf::validate($csrfToken)) {
return Response::json(['ok' => false, 'message' => 'Nieprawidłowy token CSRF.'], 403);
}