Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 3d7759d

Browse files
committed
Removed hateoas dependency
1 parent bd21c38 commit 3d7759d

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

Controller/ResourceController.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ class ResourceController
1616
*/
1717
private $registry;
1818

19-
/**
20-
* @var UrlGeneratorInterface
21-
*/
22-
private $urlGenerator;
23-
2419
/**
2520
* @var SerializerInterface
2621
*/
@@ -31,12 +26,10 @@ class ResourceController
3126
*/
3227
public function __construct(
3328
SerializerInterface $serializer,
34-
RepositoryRegistryInterface $registry,
35-
UrlGeneratorInterface $urlGenerator
29+
RepositoryRegistryInterface $registry
3630
) {
3731
$this->serializer = $serializer;
3832
$this->registry = $registry;
39-
$this->urlGenerator = $urlGenerator;
4033
}
4134

4235
public function resourceAction($repositoryName, $path)

Resources/config/resource-rest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<service id="cmf_resource_rest.controller.resource" class="%cmf_resource_rest.controller.resource.class%">
1616
<argument type="service" id="serializer" />
1717
<argument type="service" id="cmf_resource.registry" />
18-
<argument type="service" id="hateoas.generator.symfony" />
1918
</service>
2019

2120
<service id="cmf_resource_rest.registry.payload_alias" class="%cmf_resource_rest.registry.payload_alias.class%">

Tests/Resources/app/AppKernel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public function configure()
2525
new \Symfony\Cmf\Bundle\ResourceRestBundle\Tests\Resources\TestBundle\TestBundle(),
2626
new \Symfony\Cmf\Bundle\ResourceRestBundle\CmfResourceRestBundle(),
2727
new \Symfony\Cmf\Bundle\ResourceBundle\CmfResourceBundle(),
28-
new \Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle(),
2928
new \JMS\SerializerBundle\JMSSerializerBundle(),
3029
));
3130
}

0 commit comments

Comments
 (0)