Skip to content

Commit

Permalink
minor #170 [upgrade] document validateEmailConfirmationFromRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed Mar 17, 2024
1 parent 454059c commit 6d6aa41
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions UPGRADING.md
Expand Up @@ -4,3 +4,23 @@

- The `UriSignerFactory` became `@internal` & `@final`. This class should not be
used.

## VerifyEmailHelper

- `VerifyEmailHelperInterface::validateEmailConfirmation()` is deprecated since
`v1.17.0` and will be removed in `v2.0.0`. Use `validateEmailConfirmationFromRequest()`
instead.

```diff
// src/Security/EmailVerifier.php
class EmailVerifier
{
...
public function handleEmailConfirmation(Request $request, UserInterface $user): void
{
- $this->verifyEmailHelper->validateEmailConfirmation($request->getUri(), $user->getId(), $user->getEmail());
+ $this->verifyEmailHelper->validateEmailConfirmationFromRequest($request, $user->getId(), $user->getEmail());
...
}
}
```

0 comments on commit 6d6aa41

Please sign in to comment.