We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
# Current syntax # It looks strange and exposes Symfony's internals blog_show: path: /blog/{slug} defaults: { _controller: AppBundle:Blog:show } # Suggested syntax blog_show: path: /blog/{slug} controller: AppBundle:Blog:show
<?xml version="1.0" encoding="UTF-8" ?> <routes xmlns="http://symfony.com/schema/routing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- Current syntax --> <route id="blog_list" path="/blog"> <default key="_controller">AppBundle:Blog:list</default> </route> <!-- Suggested syntax --> <route id="blog_list" path="/blog" controller="AppBundle:Blog:list" /> </routes>
symfony/symfony#23227 symfony/symfony-docs#8240
The text was updated successfully, but these errors were encountered:
[Symfony 3.4] Add support for "controller" keyword for configuring ro…
1b1733b
…utes controllers #1023
bd703f6
f0c2b53
No branches or pull requests
symfony/symfony#23227
symfony/symfony-docs#8240
The text was updated successfully, but these errors were encountered: