|
@@ -54,7 +54,7 @@ |
|
|
block discarded – undo |
|
54
|
54
|
// Validate object and send problem response on failure. |
|
55
|
55
|
$violations = $this->validator->validate($object, null, $config->groups()); |
|
56
|
56
|
if ($violations->count()) { |
|
57
|
|
- $controller = function () use ($violations) { |
|
|
57
|
+ $controller = function() use ($violations) { |
|
58
|
58
|
return JsonResponse::fromJsonString( |
|
59
|
59
|
$this->serializer->serialize($violations, self::CONTENT_TYPE), |
|
60
|
60
|
Response::HTTP_BAD_REQUEST, |
Please login to merge, or discard this patch.