@@ -36,7 +36,7 @@ |
||
| 36 | 36 | ); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - /** @return JsonRpcErrorInterface */ |
|
| 39 | + /** @return JsonRpcRequestInterface */ |
|
| 40 | 40 | public function getJsonRpcError() |
| 41 | 41 | { |
| 42 | 42 | return $this->error; |
@@ -34,42 +34,42 @@ |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | $container->register('jms_serializer.handler.relation', RelationsHandler::class) |
| 37 | - ->setArguments([new Reference('doctrine.orm.entity_manager')]) |
|
| 38 | - ->addTag( |
|
| 39 | - 'jms_serializer.handler', |
|
| 40 | - [ |
|
| 41 | - 'type' => 'Relation', |
|
| 42 | - 'direction' => 'serialization', |
|
| 43 | - 'format' => 'json', |
|
| 44 | - 'method' => 'serializeRelation', |
|
| 45 | - ] |
|
| 46 | - ) |
|
| 47 | - ->addTag( |
|
| 48 | - 'jms_serializer.handler', |
|
| 49 | - [ |
|
| 50 | - 'type' => 'Relation', |
|
| 51 | - 'direction' => 'deserialization', |
|
| 52 | - 'format' => 'json', |
|
| 53 | - 'method' => 'deserializeRelation', |
|
| 54 | - ] |
|
| 55 | - ) |
|
| 56 | - ->addTag( |
|
| 57 | - 'jms_serializer.handler', |
|
| 58 | - [ |
|
| 59 | - 'type' => 'Relation<?>', |
|
| 60 | - 'direction' => 'serialization', |
|
| 61 | - 'format' => 'json', |
|
| 62 | - 'method' => 'serializeRelation', |
|
| 63 | - ] |
|
| 64 | - ) |
|
| 65 | - ->addTag( |
|
| 66 | - 'jms_serializer.handler', |
|
| 67 | - [ |
|
| 68 | - 'type' => 'Relation<?>', |
|
| 69 | - 'direction' => 'deserialization', |
|
| 70 | - 'format' => 'json', |
|
| 71 | - 'method' => 'deserializeRelation', |
|
| 72 | - ] |
|
| 73 | - ); |
|
| 37 | + ->setArguments([new Reference('doctrine.orm.entity_manager')]) |
|
| 38 | + ->addTag( |
|
| 39 | + 'jms_serializer.handler', |
|
| 40 | + [ |
|
| 41 | + 'type' => 'Relation', |
|
| 42 | + 'direction' => 'serialization', |
|
| 43 | + 'format' => 'json', |
|
| 44 | + 'method' => 'serializeRelation', |
|
| 45 | + ] |
|
| 46 | + ) |
|
| 47 | + ->addTag( |
|
| 48 | + 'jms_serializer.handler', |
|
| 49 | + [ |
|
| 50 | + 'type' => 'Relation', |
|
| 51 | + 'direction' => 'deserialization', |
|
| 52 | + 'format' => 'json', |
|
| 53 | + 'method' => 'deserializeRelation', |
|
| 54 | + ] |
|
| 55 | + ) |
|
| 56 | + ->addTag( |
|
| 57 | + 'jms_serializer.handler', |
|
| 58 | + [ |
|
| 59 | + 'type' => 'Relation<?>', |
|
| 60 | + 'direction' => 'serialization', |
|
| 61 | + 'format' => 'json', |
|
| 62 | + 'method' => 'serializeRelation', |
|
| 63 | + ] |
|
| 64 | + ) |
|
| 65 | + ->addTag( |
|
| 66 | + 'jms_serializer.handler', |
|
| 67 | + [ |
|
| 68 | + 'type' => 'Relation<?>', |
|
| 69 | + 'direction' => 'deserialization', |
|
| 70 | + 'format' => 'json', |
|
| 71 | + 'method' => 'deserializeRelation', |
|
| 72 | + ] |
|
| 73 | + ); |
|
| 74 | 74 | } |
| 75 | 75 | } |
@@ -23,12 +23,12 @@ |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | $container->register('jms_serializer.driver.relation', HandledTypeDriver::class) |
| 26 | - ->setArguments( |
|
| 27 | - [ |
|
| 28 | - new Reference('jms_serializer.metadata.doctrine_type_driver'), |
|
| 29 | - new Reference('annotation_reader'), |
|
| 30 | - ] |
|
| 31 | - ); |
|
| 26 | + ->setArguments( |
|
| 27 | + [ |
|
| 28 | + new Reference('jms_serializer.metadata.doctrine_type_driver'), |
|
| 29 | + new Reference('annotation_reader'), |
|
| 30 | + ] |
|
| 31 | + ); |
|
| 32 | 32 | |
| 33 | 33 | $container->setAlias('jms_serializer.metadata_driver', 'jms_serializer.driver.relation'); |
| 34 | 34 | } |