Skip to content

Conversation

@robmeijer
Copy link
Contributor

This PR amends the route names generated by make:controller and make:crud by prepending them with app_.

This matches the route names generated by make:auth and make:registration-form.

@weaverryan
Copy link
Member

This bothers me too :)

@weaverryan
Copy link
Member

@robmeijer could you rebase? I've just merged a PR to get the tests in order (and running for Symfony 6). Thanks :)

@robmeijer robmeijer force-pushed the feature/default-route-names branch from a87688f to c73934a Compare November 16, 2021 13:43
@weaverryan
Copy link
Member

Tests are failing due to some sloppy code that I probably wrote awhile ago :). This line -

$serviceId = $serviceId ?? sprintf('maker.maker.%s', Str::asRouteName((new \ReflectionClass($makerClass))->getShortName()));
- should probably change to use asSnakeCase()

@robmeijer
Copy link
Contributor Author

Tests are failing due to some sloppy code that I probably wrote awhile ago :). This line -

$serviceId = $serviceId ?? sprintf('maker.maker.%s', Str::asRouteName((new \ReflectionClass($makerClass))->getShortName()));

  • should probably change to use asSnakeCase()

eergh I was certain I checked usages of that method before changing it. Have pushed the suggested fix.

@jrushlow jrushlow force-pushed the feature/default-route-names branch from 48c54cb to 6d05dda Compare February 23, 2022 19:44
Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @robmeijer

@jrushlow jrushlow merged commit 187d02e into symfony:main Feb 23, 2022
@robmeijer robmeijer deleted the feature/default-route-names branch February 23, 2022 20:12
@jrushlow jrushlow mentioned this pull request Feb 23, 2022
@alexseif
Copy link

Hello, I wanted to ask you guys what do you think of this proposal? #1334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants