summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e99be2c)
I didn't try to find which package introduced a BC (might be user-bundle
or jms serializer)
$view->setFormat('json');
// handle errors in a more beautiful way than the default view
$view->setFormat('json');
// handle errors in a more beautiful way than the default view
- $data = json_decode($this->handleView($view)->getContent(), true)['children'];
+ $data = json_decode($this->handleView($view)->getContent(), true)['errors']['children'];
$errors = [];
if (isset($data['username']['errors'])) {
$errors = [];
if (isset($data['username']['errors'])) {