mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
remove dump
This commit is contained in:
parent
ecda740d81
commit
87cf8d737e
@ -162,7 +162,7 @@ class ApiController extends AbstractCRUDController
|
|||||||
} catch (NotEncodableValueException $e) {
|
} catch (NotEncodableValueException $e) {
|
||||||
throw new BadRequestException('invalid json', 400, $e);
|
throw new BadRequestException('invalid json', 400, $e);
|
||||||
}
|
}
|
||||||
dump($entity);
|
|
||||||
$errors = $this->validate($action, $request, $_format, $entity);
|
$errors = $this->validate($action, $request, $_format, $entity);
|
||||||
|
|
||||||
$response = $this->onAfterValidation($action, $request, $_format, $entity, $errors);
|
$response = $this->onAfterValidation($action, $request, $_format, $entity, $errors);
|
||||||
@ -177,7 +177,7 @@ class ApiController extends AbstractCRUDController
|
|||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
dump('before flush');
|
|
||||||
$this->getDoctrine()->getManager()->flush();
|
$this->getDoctrine()->getManager()->flush();
|
||||||
|
|
||||||
$response = $this->onAfterFlush($action, $request, $_format, $entity, $errors);
|
$response = $this->onAfterFlush($action, $request, $_format, $entity, $errors);
|
||||||
@ -351,7 +351,6 @@ class ApiController extends AbstractCRUDController
|
|||||||
$default,
|
$default,
|
||||||
$this->getContextForSerialization($action, $request, $_format, $entity)
|
$this->getContextForSerialization($action, $request, $_format, $entity)
|
||||||
);
|
);
|
||||||
dump($context);
|
|
||||||
|
|
||||||
return $this->getSerializer()->deserialize($request->getContent(), $this->getEntityClass(), $_format, $context);
|
return $this->getSerializer()->deserialize($request->getContent(), $this->getEntityClass(), $_format, $context);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user