Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature symfony#51804 [Security] Make
impersonation_path()
argument…
… mandatory and add `impersonation_url()` (alexandre-daubois) This PR was merged into the 6.4 branch. Discussion ---------- [Security] Make `impersonation_path()` argument mandatory and add `impersonation_url()` | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | yes | Deprecations? | no | Tickets | - | License | MIT Follow-up of symfony#50030 When documenting this function, I found out that the`identifier` argument was optional, which seemed weird to me given the function purpose. I then had a look at the implementation, and I saw that `ImpersonateUrlGenerator::generateImpersonationPath()` accepts a nullable string. However, the underlying call to `ImpersonateUrlGenerator::buildPath()` doesn't accept a nullable string. I propose to make the `identifier` argument mandatory, which makes more sense here. I also added the missing Changelog line and `impersonation_url()` Commits ------- 5d71d95 [Security] Make `impersonation_path()` argument mandatory and add `impersonation_url()`
- Loading branch information