1 | <?php |
||
6 | class CommandMappingException extends AbstractNormalizableCommandResolverException |
||
7 | { |
||
8 | /** |
||
9 | * @inheritdoc |
||
10 | * See http://jsonapi.org/examples/#error-objects-basics |
||
11 | * Example: |
||
12 | * { |
||
13 | * "errors": [ |
||
14 | * { |
||
15 | * "status": "406", |
||
16 | * "source": { "pointer": "/data/attributes/firstName" }, |
||
17 | * "title": "Invalid Attribute", |
||
18 | * "detail": "Array does not contain an element with key firstName" |
||
19 | * } |
||
20 | * ] |
||
21 | * } |
||
22 | */ |
||
23 | public function normalize(): array |
||
31 | } |
||
32 |