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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user