Skip to content

Commit 789cff5

Browse files
author
abluchet
committed
Fix Subresource to use cache factory
1 parent e93a9d1 commit 789cff5

File tree

1 file changed

+2
-2
lines changed
  • src/Bridge/Symfony/Bundle/Resources/config

1 file changed

+2
-2
lines changed

src/Bridge/Symfony/Bundle/Resources/config/api.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<argument type="service" id="service_container" />
3737
<argument>%api_platform.formats%</argument>
3838
<argument>%api_platform.resource_class_directories%</argument>
39-
<argument type="service" id="api_platform.subresource_operation_factory" />
39+
<argument type="service" id="api_platform.subresource_operation_factory.cached" />
4040

4141
<tag name="routing.loader" />
4242
</service>
@@ -90,7 +90,7 @@
9090
<service id="api_platform.operation_path_resolver.router" class="ApiPlatform\Core\Bridge\Symfony\Routing\RouterOperationPathResolver" public="false">
9191
<argument type="service" id="api_platform.router" />
9292
<argument type="service" id="api_platform.operation_path_resolver.custom" />
93-
<argument type="service" id="api_platform.subresource_operation_factory" />
93+
<argument type="service" id="api_platform.subresource_operation_factory.cached" />
9494
</service>
9595

9696
<service id="api_platform.operation_path_resolver.custom" class="ApiPlatform\Core\PathResolver\CustomOperationPathResolver" public="false">

0 commit comments

Comments
 (0)