Skip to content

Commit

Permalink
fix(serializer): cache class metadata factory (#5512)
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka authored Mar 31, 2023
1 parent 138c512 commit af5cd20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Symfony/Bundle/Resources/config/api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@
<argument type="service" id="api_platform.serializer.mapping.class_metadata_factory.inner" />
</service>

<service id="api_platform.serializer.mapping.cache_class_metadata_factory" class="Symfony\Component\Serializer\Mapping\Factory\CacheClassMetadataFactory" decorates="api_platform.serializer.mapping.class_metadata_factory" decoration-priority="-2" public="false">
<argument type="service" id="api_platform.serializer.mapping.cache_class_metadata_factory.inner" />
<argument type="service" id="serializer.mapping.cache.symfony" />
</service>

<!-- Resources Operations path resolver -->
<service id="api_platform.path_segment_name_generator.underscore" class="ApiPlatform\Operation\UnderscorePathSegmentNameGenerator" public="false" />
<service id="api_platform.path_segment_name_generator.dash" class="ApiPlatform\Operation\DashPathSegmentNameGenerator" public="false" />
Expand Down

0 comments on commit af5cd20

Please sign in to comment.