Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Open
Description
Symfony version(s) affected
7.0.1
Description
Symfony generates an automatic route name with the action method name.
When the action method name has a capital letter like changePassword, it giveschangepassword
.
In the following example, the route name isapp_account_security_changepassword
.
It would be interesting to have insteadapp_account_security_change_password
What do you think ?
How to reproduce
<?phpnamespaceApp\Controller\Account;// ...finalclass SecurityControllerextends AbstractController{ #[Route('/account/security/change-password'])]publicfunctionchangePassword():Response {// ... }}
Possible Solution
No response
Additional Context
No response