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:
@@ -21,9 +21,9 @@ use Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
use Symfony\Component\HttpFoundation\Exception\BadRequestException;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Component\Serializer\SerializerInterface;
|
||||
use Symfony\Component\Validator\ConstraintViolationInterface;
|
||||
@@ -255,7 +255,7 @@ class AccompanyingCourseController extends Controller
|
||||
$personIds = $request->query->get('person_id');
|
||||
|
||||
if (false === is_array($personIds)) {
|
||||
throw new BadRequestException('person_id parameter should be an array');
|
||||
throw new BadRequestHttpException('person_id parameter should be an array');
|
||||
}
|
||||
|
||||
foreach ($personIds as $personId) {
|
||||
|
Reference in New Issue
Block a user