Skip to content

Conversation

GromNaN
Copy link
Contributor

@GromNaN GromNaN commented Oct 16, 2025

Q A
Branch? 4.2
Tickets symfony/symfony#60568 (comment)
License MIT
Doc PR

The routing config files are not included automatically by the applications, we can remove the xml files.

@GromNaN GromNaN changed the title feat(symfony): convert routing files to php-dsl feat(symfony): convert routing files from XML to PHP-DSL Oct 16, 2025
namespace Symfony\Component\Routing\Loader\Configurator;

return function (RoutingConfigurator $routes) {
$routes->add('api_entrypoint', '/{index}.{_format}')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought we could put index in the path, since there is a requirements index=index, but it turns out that index is optional. This route matches /

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.

1 participant