Skip to content

Commit

Permalink
Merge branch 'master' of github.com:willdurand/BazingaHateoasBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
ahilles107 committed Dec 27, 2017
2 parents e35f5dc + 7374336 commit 68296a8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions DependencyInjection/BazingaHateoasExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ public function load(array $configs, ContainerBuilder $container)

$container
->getDefinition('hateoas.event_subscriber.json')
->setPublic(true)
->replaceArgument(0, new Reference($config['serializer']['json']));

$container
->getDefinition('hateoas.event_subscriber.xml')
->setPublic(true)
->replaceArgument(0, new Reference($config['serializer']['xml']));
}
}
2 changes: 1 addition & 1 deletion Resources/config/generator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parameters>

<services>
<service id="hateoas.generator.registry" class="%hateoas.generator.registry.class%">
<service id="hateoas.generator.registry" class="%hateoas.generator.registry.class%" public="true">
<argument type="service" id="hateoas.generator.symfony" />
</service>

Expand Down
2 changes: 1 addition & 1 deletion Resources/config/helper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</parameters>

<services>
<service id="hateoas.helper.link" class="%hateoas.helper.link.class%">
<service id="hateoas.helper.link" class="%hateoas.helper.link.class%" public="true">
<argument type="service" id="hateoas.link_factory" />
<argument type="service" id="hateoas.configuration.relations_repository" />
</service>
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/serializer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

<service id="bazinga_hateoas.expression_language" class="%bazinga_hateoas.expression_language.class%" />

<service id="hateoas.expression.link" class="%hateoas.expression.link.class%">
<service id="hateoas.expression.link" class="%hateoas.expression.link.class%" public="true">
<argument type="service" id="hateoas.helper.link" />
<tag name="hateoas.expression_function"/>
</service>
Expand Down

0 comments on commit 68296a8

Please sign in to comment.