Skip to content

Commit 2da8dd3

Browse files
committed
fix(symfony): replace tagged by tagged_iterator
1 parent 67350b7 commit 2da8dd3

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
<service id="api_platform.uri_variables.converter" class="ApiPlatform\Api\UriVariablesConverter" public="false">
142142
<argument type="service" id="api_platform.metadata.property.metadata_factory" />
143143
<argument type="service" id="api_platform.metadata.resource.metadata_collection_factory" />
144-
<argument type="tagged" tag="api_platform.uri_variables.transformer" />
144+
<argument type="tagged_iterator" tag="api_platform.uri_variables.transformer" />
145145
</service>
146146

147147
<service id="api_platform.uri_variables.transformer.integer" class="ApiPlatform\Api\UriVariableTransformer\IntegerUriVariableTransformer" public="false">

src/Symfony/Bundle/Resources/config/doctrine_orm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
<service id="api_platform.doctrine.orm.state.collection_provider" class="ApiPlatform\Doctrine\Orm\State\CollectionProvider" public="false">
155155
<argument type="service" id="api_platform.metadata.resource.metadata_collection_factory" />
156156
<argument type="service" id="doctrine" />
157-
<argument type="tagged" tag="api_platform.doctrine.orm.query_extension.collection" />
157+
<argument type="tagged_iterator" tag="api_platform.doctrine.orm.query_extension.collection" />
158158
<argument type="tagged_locator" tag="api_platform.doctrine.orm.links_handler" index-by="key" />
159159

160160
<tag name="api_platform.state_provider" priority="-100" key="ApiPlatform\Doctrine\Orm\State\CollectionProvider" />
@@ -165,7 +165,7 @@
165165
<service id="api_platform.doctrine.orm.state.item_provider" class="ApiPlatform\Doctrine\Orm\State\ItemProvider" public="false">
166166
<argument type="service" id="api_platform.metadata.resource.metadata_collection_factory" />
167167
<argument type="service" id="doctrine" />
168-
<argument type="tagged" tag="api_platform.doctrine.orm.query_extension.item" />
168+
<argument type="tagged_iterator" tag="api_platform.doctrine.orm.query_extension.item" />
169169
<argument type="tagged_locator" tag="api_platform.doctrine.orm.links_handler" index-by="key" />
170170

171171
<tag name="api_platform.state_provider" priority="-100" key="ApiPlatform\Doctrine\Orm\State\ItemProvider" />

src/Symfony/Bundle/Resources/config/http_cache_purger.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
<services>
88
<service id="api_platform.http_cache.purger.varnish" alias="api_platform.http_cache.purger.varnish.ban" public="false" />
99
<service id="api_platform.http_cache.purger.varnish.ban" class="ApiPlatform\HttpCache\VarnishPurger" public="false">
10-
<argument type="tagged" tag="api_platform.http_cache.http_client" />
10+
<argument type="tagged_iterator" tag="api_platform.http_cache.http_client" />
1111
</service>
1212
<service id="api_platform.http_cache.purger.varnish.xkey" class="ApiPlatform\HttpCache\VarnishXKeyPurger" public="false">
13-
<argument type="tagged" tag="api_platform.http_cache.http_client" />
13+
<argument type="tagged_iterator" tag="api_platform.http_cache.http_client" />
1414
<argument>%api_platform.http_cache.invalidation.max_header_length%</argument>
1515
<argument>%api_platform.http_cache.invalidation.xkey.glue%</argument>
1616
</service>
1717
<service id="api_platform.http_cache.purger.souin" class="ApiPlatform\HttpCache\SouinPurger" public="false">
18-
<argument type="tagged" tag="api_platform.http_cache.http_client" />
18+
<argument type="tagged_iterator" tag="api_platform.http_cache.http_client" />
1919
<argument>%api_platform.http_cache.invalidation.max_header_length%</argument>
2020
</service>
2121
</services>

src/Symfony/Bundle/Resources/config/metadata/validator.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
<service id="api_platform.metadata.property.metadata_factory.validator" class="ApiPlatform\Symfony\Validator\Metadata\Property\ValidatorPropertyMetadataFactory" decorates="api_platform.metadata.property.metadata_factory" decoration-priority="20" public="false">
77
<argument type="service" id="validator" />
88
<argument type="service" id="api_platform.metadata.property.metadata_factory.validator.inner" />
9-
<argument type="tagged" tag="api_platform.metadata.property_schema_restriction" />
9+
<argument type="tagged_iterator" tag="api_platform.metadata.property_schema_restriction" />
1010
</service>
1111

1212
<service id="api_platform.metadata.property_schema.choice_restriction" class="ApiPlatform\Symfony\Validator\Metadata\Property\Restriction\PropertySchemaChoiceRestriction" public="false">
1313
<tag name="api_platform.metadata.property_schema_restriction"/>
1414
</service>
1515

1616
<service id="api_platform.metadata.property_schema.collection_restriction" class="ApiPlatform\Symfony\Validator\Metadata\Property\Restriction\PropertySchemaCollectionRestriction" public="false">
17-
<argument type="tagged" tag="api_platform.metadata.property_schema_restriction" />
17+
<argument type="tagged_iterator" tag="api_platform.metadata.property_schema_restriction" />
1818
<tag name="api_platform.metadata.property_schema_restriction"/>
1919
</service>
2020

@@ -43,7 +43,7 @@
4343
</service>
4444

4545
<service id="api_platform.metadata.property_schema.one_of_restriction" class="ApiPlatform\Symfony\Validator\Metadata\Property\Restriction\PropertySchemaOneOfRestriction" public="false">
46-
<argument type="tagged" tag="api_platform.metadata.property_schema_restriction" />
46+
<argument type="tagged_iterator" tag="api_platform.metadata.property_schema_restriction" />
4747
<tag name="api_platform.metadata.property_schema_restriction"/>
4848
</service>
4949

tests/.ignored-deprecations

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616
%Since symfony/validator 7.1: Not passing a value for the "requireTld" option to the Url constraint is deprecated. Its default value will change to "true".%
1717

1818
%$fieldsBuilder argument of SchemaBuilder implementing "ApiPlatform\\GraphQl\\Type\\FieldsBuilderInterface" is deprecated since API Platform 3.1. It has to implement "ApiPlatform\\GraphQl\\Type\\FieldsBuilderEnumInterface" instead.%
19+
20+
%Since symfony/dependency-injection 7.2: Type "tagged" is deprecated for tag <argument>, use "tagged_iterator" instead%

0 commit comments

Comments
 (0)