@@ -39,7 +39,7 @@ |
||
| 39 | 39 | { |
| 40 | 40 | $this->serializerBuilder |
| 41 | 41 | ->addDefaultListeners() |
| 42 | - ->configureListeners(function (EventDispatcherInterface $dispatcher) { |
|
| 42 | + ->configureListeners(function(EventDispatcherInterface $dispatcher) { |
|
| 43 | 43 | $dispatcher->addSubscriber(new JsonEventSubscriber($this->relationFactory)); |
| 44 | 44 | }) |
| 45 | 45 | ; |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Doctrine\Common\Persistence\Mapping\ClassMetadata; |
| 7 | 7 | use Doctrine\Common\Persistence\ObjectManager; |
| 8 | 8 | use Doctrine\Common\Annotations\Reader; |
| 9 | -use Symfony\Component\HttpFoundation\RequestStack; |
|
| 10 | 9 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
| 11 | 10 | |
| 12 | 11 | /** |