mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
replace BadRequestException by BadRequestHttpException
This commit is contained in:
@@ -25,6 +25,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||
use Symfony\Component\Form\FormInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
use Symfony\Component\Serializer\SerializerInterface;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
@@ -1140,6 +1141,6 @@ class CRUDController extends AbstractController
|
||||
return $this->json($entity, Response::HTTP_OK, [], $context);
|
||||
}
|
||||
|
||||
throw new \Symfony\Component\HttpFoundation\Exception\BadRequestException('This format is not implemented');
|
||||
throw new BadRequestHttpException('This format is not implemented');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user