@@ -14,9 +14,7 @@ |
||
14 | 14 | use RonteLtd\JsonApiBundle\Annotation\Relationship; |
15 | 15 | use RonteLtd\JsonApiBundle\Annotation\ObjectNormalizer as ObjectNormalizerAnnotation; |
16 | 16 | use RonteLtd\JsonApiBundle\Serializer\Exception\LogicException; |
17 | -use RonteLtd\JsonApiBundle\Serializer\Mapping\AttributeMetadata; |
|
18 | 17 | use RonteLtd\JsonApiBundle\Serializer\Mapping\AttributeMetadataInterface; |
19 | -use RonteLtd\JsonApiBundle\Serializer\Mapping\ClassAnnotationInterface; |
|
20 | 18 | use RonteLtd\JsonApiBundle\Serializer\Mapping\ClassMetadataInterface; |
21 | 19 | use RonteLtd\JsonApiBundle\Serializer\Mapping\Factory\MetadataFactoryInterface; |
22 | 20 | use Symfony\Component\PropertyAccess\PropertyAccessorInterface; |
@@ -76,7 +76,7 @@ |
||
76 | 76 | */ |
77 | 77 | public function normalize($object, $format = null, array $context = array()) |
78 | 78 | { |
79 | - $this->setCircularReferenceHandler(function ($object) { |
|
79 | + $this->setCircularReferenceHandler(function($object) { |
|
80 | 80 | return []; |
81 | 81 | }); |
82 | 82 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | (array_key_exists('jsonapi', $config) ? $config['jsonapi'] : null) |
28 | 28 | ); |
29 | 29 | |
30 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
30 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | 31 | $loader->load('services.yml'); |
32 | 32 | } |
33 | 33 | } |