You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'Using "%alias_id%" service is deprecated since API Platform 2.6. Use "api_platform.doctrine.orm.listener.mercure.publish" instead.'));
Copy file name to clipboardExpand all lines: src/Bridge/Symfony/Bundle/DependencyInjection/Configuration.php
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -136,37 +136,37 @@ public function getConfigTreeBuilder()
136
136
->addDefaultsIfNotSet()
137
137
->children()
138
138
->booleanNode('enabled')
139
-
->setDeprecated('The use of the `collection.pagination.enabled` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_enabled` instead.')
139
+
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'The use of the `collection.pagination.enabled` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_enabled` instead.'))
140
140
->defaultTrue()
141
141
->info('To enable or disable pagination for all resource collections by default.')
142
142
->end()
143
143
->booleanNode('partial')
144
-
->setDeprecated('The use of the `collection.pagination.partial` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_partial` instead.')
144
+
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'The use of the `collection.pagination.partial` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_partial` instead.'))
145
145
->defaultFalse()
146
146
->info('To enable or disable partial pagination for all resource collections by default when pagination is enabled.')
147
147
->end()
148
148
->booleanNode('client_enabled')
149
-
->setDeprecated('The use of the `collection.pagination.client_enabled` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_client_enabled` instead.')
149
+
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'The use of the `collection.pagination.client_enabled` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_client_enabled` instead.'))
150
150
->defaultFalse()
151
151
->info('To allow the client to enable or disable the pagination.')
152
152
->end()
153
153
->booleanNode('client_items_per_page')
154
-
->setDeprecated('The use of the `collection.pagination.client_items_per_page` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_client_items_per_page` instead.')
154
+
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'The use of the `collection.pagination.client_items_per_page` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_client_items_per_page` instead.'))
155
155
->defaultFalse()
156
156
->info('To allow the client to set the number of items per page.')
157
157
->end()
158
158
->booleanNode('client_partial')
159
-
->setDeprecated('The use of the `collection.pagination.client_partial` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_client_partial` instead.')
159
+
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'The use of the `collection.pagination.client_partial` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_client_partial` instead.'))
160
160
->defaultFalse()
161
161
->info('To allow the client to enable or disable partial pagination.')
162
162
->end()
163
163
->integerNode('items_per_page')
164
-
->setDeprecated('The use of the `collection.pagination.items_per_page` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_items_per_page` instead.')
164
+
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'The use of the `collection.pagination.items_per_page` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_items_per_page` instead.'))
165
165
->defaultValue(30)
166
166
->info('The default number of items per page.')
167
167
->end()
168
168
->integerNode('maximum_items_per_page')
169
-
->setDeprecated('The use of the `collection.pagination.maximum_items_per_page` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_maximum_items_per_page` instead.')
169
+
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'The use of the `collection.pagination.maximum_items_per_page` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.pagination_maximum_items_per_page` instead.'))
170
170
->defaultNull()
171
171
->info('The maximum number of items per page.')
172
172
->end()
@@ -350,22 +350,22 @@ private function addHttpCacheSection(ArrayNodeDefinition $rootNode): void
350
350
->addDefaultsIfNotSet()
351
351
->children()
352
352
->booleanNode('etag')
353
-
->setDeprecated('The use of the `http_cache.etag` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.cache_headers.etag` instead.')
353
+
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'The use of the `http_cache.etag` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.cache_headers.etag` instead.'))
354
354
->defaultTrue()
355
355
->info('Automatically generate etags for API responses.')
356
356
->end()
357
357
->integerNode('max_age')
358
-
->setDeprecated('The use of the `http_cache.max_age` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.cache_headers.max_age` instead.')
358
+
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'The use of the `http_cache.max_age` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.cache_headers.max_age` instead.'))
359
359
->defaultNull()
360
360
->info('Default value for the response max age.')
361
361
->end()
362
362
->integerNode('shared_max_age')
363
-
->setDeprecated('The use of the `http_cache.shared_max_age` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.cache_headers.shared_max_age` instead.')
363
+
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'The use of the `http_cache.shared_max_age` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.cache_headers.shared_max_age` instead.'))
364
364
->defaultNull()
365
365
->info('Default value for the response shared (proxy) max age.')
366
366
->end()
367
367
->arrayNode('vary')
368
-
->setDeprecated('The use of the `http_cache.vary` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.cache_headers.vary` instead.')
368
+
->setDeprecated(...$this->buildDeprecationArgs('2.6', 'The use of the `http_cache.vary` has been deprecated in 2.6 and will be removed in 3.0. Use `defaults.cache_headers.vary` instead.'))
369
369
->defaultValue(['Accept'])
370
370
->prototype('scalar')->end()
371
371
->info('Default values of the "Vary" HTTP header.')
<deprecated>Using "%alias_id%" service is deprecated since API Platform 2.6. Use "api_platform.doctrine.orm.listener.mercure.publish" instead.</deprecated>
? ['api-platform/core', '2.6', 'Using "%alias_id%" service is deprecated since API Platform 2.6. Use "api_platform.doctrine.orm.listener.mercure.publish" instead.']
44
+
: ['Using "%alias_id%" service is deprecated since API Platform 2.6. Use "api_platform.doctrine.orm.listener.mercure.publish" instead.'];
0 commit comments