mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
replace BadRequestException by BadRequestHttpException
This commit is contained in:
@@ -33,7 +33,6 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
use Symfony\Component\Form\FormFactoryInterface;
|
||||
use Symfony\Component\HttpFoundation\Exception\BadRequestException;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
@@ -494,7 +493,7 @@ final class SingleTaskController extends AbstractController
|
||||
);
|
||||
|
||||
default:
|
||||
throw new BadRequestException("format not supported: {$_format}");
|
||||
throw new BadRequestHttpException("format not supported: {$_format}");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user