Skip to content

Commit

Permalink
[Maintenance][API] Update UPGRADE-API-1.12.md
Browse files Browse the repository at this point in the history
  • Loading branch information
coldic3 committed Apr 7, 2022
1 parent b87a916 commit e945d76
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions UPGRADE-API-1.12.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,28 @@ Here is how the response looks like:
Wrong parameters otherwise cause empty array `[]` in response and correct parameters return `paymentMethods` available for your `payment`.
1. The 2nd parameter `MetadataInterface` has been removed from `src/Sylius/Bundle/ApiBundle/CommandHandler/Account/ResetPasswordHandler` and replaced by `Sylius\Component\User\Security\PasswordUpdaterInterface` (previously 3rd parameter). From now on a token TTL value must be used instead as the 3rd parameter.
1. Constructor of `Sylius\Bundle\ApiBundle\CommandHandler\Account\RequestResetPasswordTokenHandler` has been extended with `Sylius\Calendar\Provider\DateTimeProviderInterface` argument:
```diff
public function __construct(
private UserRepositoryInterface $userRepository,
private MessageBusInterface $commandBus,
- private GeneratorInterface $generator
+ private GeneratorInterface $generator,
+ private DateTimeProviderInterface $calendar
) {
}
```
1. Constructor of `\Sylius\Bundle\ApiBundle\CommandHandler\Account\VerifyCustomerAccountHandler` has been extended with `Sylius\Calendar\Provider\DateTimeProviderInterface` argument:
```diff
- public function __construct(private RepositoryInterface $shopUserRepository)
- {
+ public function __construct(
+ private RepositoryInterface $shopUserRepository,
+ private DateTimeProviderInterface $calendar
+ ) {
}
```

0 comments on commit e945d76

Please sign in to comment.