Skip to content
New issue

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

Symfony 3.4: Prefix all controller route names #1017

Closed
Haehnchen opened this issue Sep 6, 2017 · 0 comments
Closed

Symfony 3.4: Prefix all controller route names #1017

Haehnchen opened this issue Sep 6, 2017 · 0 comments
Labels

Comments

@Haehnchen
Copy link
Owner

Haehnchen commented Sep 6, 2017

see http://symfony.com/blog/new-in-symfony-3-4-prefix-all-controller-route-names / symfony/symfony#24031

/**
 * @Route("/blog", name="blog_")
 */
class BlogController extends Controller
{
    /**
     * @Route("/", defaults={"page": "1"}, name="index")
     * @Route("/page/{page}", name="index_paginated")
     */
    public function indexAction($page, $_format) { ... }

    /**
     * @Route("/posts/{slug}", name="post")
     */
    public function showAction(Post $post) { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant