mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
Move IriConverter constructor change out of Deprecation section in UPGRADE-2.2.md
This commit is contained in:
parent
8a9700cbbf
commit
5d781137d4
1 changed files with 16 additions and 12 deletions
|
|
@ -1,3 +1,19 @@
|
|||
# UPGRADE FROM `2.6.0` TO `2.7.0`
|
||||
|
||||
## Constructor Signature Changes
|
||||
|
||||
1. The constructor of `Sylius\Bundle\ApiBundle\ApiPlatform\Routing\IriConverter` has been extended with an optional `ApiPlatform\Metadata\ResourceClassResolverInterface` argument.
|
||||
|
||||
```php
|
||||
public function __construct(
|
||||
IriConverterInterface $decoratedIriConverter,
|
||||
PathPrefixProviderInterface $pathPrefixProvider,
|
||||
OperationResolverInterface $operationResolver,
|
||||
RouterInterface $router,
|
||||
+ ?ResourceClassResolverInterface $resourceClassResolver = null,
|
||||
)
|
||||
```
|
||||
|
||||
# UPGRADE FROM `2.1` TO `2.2`
|
||||
|
||||
## Telemetry
|
||||
|
|
@ -31,18 +47,6 @@ SYLIUS_TELEMETRY_SALT=your-custom-salt
|
|||
|
||||
## Deprecations
|
||||
|
||||
1. Not injecting a `Sylius\Bundle\ApiBundle\ApiPlatform\Routing\IriConverter` with `ApiPlatform\Metadata\ResourceClassResolverInterface` is deprecated since Sylius 2.2 and will be required in Sylius 3.0.
|
||||
|
||||
```php
|
||||
public function __construct(
|
||||
IriConverterInterface $decoratedIriConverter,
|
||||
PathPrefixProviderInterface $pathPrefixProvider,
|
||||
OperationResolverInterface $operationResolver,
|
||||
RouterInterface $router,
|
||||
+ ?ResourceClassResolverInterface $resourceClassResolver = null,
|
||||
)
|
||||
```
|
||||
|
||||
1. Not injecting a `tagged_iterator` with the tag `sylius_shop.modifier.address_form_values` into the constructor of `Sylius\Bundle\ShopBundle\Twig\Component\Checkout\Address\FormComponent` is deprecated since Sylius 2.2 and will be required in Sylius 3.0.
|
||||
|
||||
This change enables extending the checkout address form with custom fields or logic by registering services tagged with `sylius_shop.modifier.address_form_values`, which implement the `AddressFormValuesModifierInterface`.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue