Convert '-' to '_' in Controller::defaultRouteName() and strip invalid characters
Dashes are common in URL patterns, so it would be helpful to convert them to underscores for default route generation. Any invalid characters (according to Symfony\Component\Routing\RouteCollection) should be stripped entirely, lest an exception is raised.
Showing
Please register or sign in to comment