[API] Deprecate legacy_error_handling and serialization_groups configuration parameters

This commit is contained in:
Grzegorz Sadowski 2024-10-23 15:36:40 +02:00
parent 33e6f0d150
commit be2da11193
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
2 changed files with 9 additions and 1 deletions

View file

@ -12,3 +12,9 @@
| `sylius.security.new_api_shop_regex` | `sylius.security.api_shop_regex` |
| `sylius.security.new_api_user_account_route` | `sylius.security.api_shop_account_route` |
| `sylius.security.new_api_user_account_regex` | `sylius.security.api_shop_account_regex` |
1. The following configuration parameters have been deprecated and will be removed in 2.0:
- `sylius_api.legacy_error_handling`
- `sylius_api.serialization_groups.skip_adding_read_group`
- `sylius_api.serialization_groups.skip_adding_index_and_show_groups`

View file

@ -32,6 +32,7 @@ final class Configuration implements ConfigurationInterface
->defaultFalse()
->end()
->booleanNode('legacy_error_handling')
->setDeprecated('sylius/api-bundle', '1.14', 'The "%path%.%node%" is deprecated and will be removed in 2.0.')
->defaultFalse()
->end()
->end()
@ -42,6 +43,7 @@ final class Configuration implements ConfigurationInterface
->end()
->children()
->arrayNode('serialization_groups')
->setDeprecated('sylius/api-bundle', '1.14', 'The "%path%.%node%" is deprecated and will be removed in 2.0.')
->addDefaultsIfNotSet()
->children()
->booleanNode('skip_adding_read_group')