This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,6 @@ class ResourceController
16
16
*/
17
17
private $ registry ;
18
18
19
- /**
20
- * @var UrlGeneratorInterface
21
- */
22
- private $ urlGenerator ;
23
-
24
19
/**
25
20
* @var SerializerInterface
26
21
*/
@@ -31,12 +26,10 @@ class ResourceController
31
26
*/
32
27
public function __construct (
33
28
SerializerInterface $ serializer ,
34
- RepositoryRegistryInterface $ registry ,
35
- UrlGeneratorInterface $ urlGenerator
29
+ RepositoryRegistryInterface $ registry
36
30
) {
37
31
$ this ->serializer = $ serializer ;
38
32
$ this ->registry = $ registry ;
39
- $ this ->urlGenerator = $ urlGenerator ;
40
33
}
41
34
42
35
public function resourceAction ($ repositoryName , $ path )
Original file line number Diff line number Diff line change 15
15
<service id =" cmf_resource_rest.controller.resource" class =" %cmf_resource_rest.controller.resource.class%" >
16
16
<argument type =" service" id =" serializer" />
17
17
<argument type =" service" id =" cmf_resource.registry" />
18
- <argument type =" service" id =" hateoas.generator.symfony" />
19
18
</service >
20
19
21
20
<service id =" cmf_resource_rest.registry.payload_alias" class =" %cmf_resource_rest.registry.payload_alias.class%" >
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ public function configure()
25
25
new \Symfony \Cmf \Bundle \ResourceRestBundle \Tests \Resources \TestBundle \TestBundle (),
26
26
new \Symfony \Cmf \Bundle \ResourceRestBundle \CmfResourceRestBundle (),
27
27
new \Symfony \Cmf \Bundle \ResourceBundle \CmfResourceBundle (),
28
- new \Bazinga \Bundle \HateoasBundle \BazingaHateoasBundle (),
29
28
new \JMS \SerializerBundle \JMSSerializerBundle (),
30
29
));
31
30
}
You can’t perform that action at this time.
0 commit comments