Skip to content

Commit

Permalink
fix(symfony): make service api_platform.state_provider.main available
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhelias committed May 3, 2024
1 parent e867d07 commit 616314b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Symfony/Bundle/Resources/config/state/provider.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="api_platform.state_provider.main" alias="api_platform.state_provider.locator" />

<service id="api_platform.state_provider.content_negotiation" class="ApiPlatform\State\Provider\ContentNegotiationProvider" decorates="api_platform.state_provider.main" decoration-priority="100">
<argument type="service" id="api_platform.state_provider.content_negotiation.inner" />
<argument type="service" id="api_platform.negotiator" />
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bundle/Resources/config/state/state.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="api_platform.state_provider.main" alias="api_platform.state_provider.locator" />

<service id="api_platform.state_provider.locator" class="ApiPlatform\State\CallableProvider">
<argument type="tagged_locator" tag="api_platform.state_provider" index-by="key" />
</service>
Expand Down

0 comments on commit 616314b

Please sign in to comment.