Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8354111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:27:26+00:00 2026-06-09T09:27:26+00:00

Is there any difference in using annotation routes or group routes in symfony 2

  • 0

Is there any difference in using annotation routes or group routes in symfony 2 when it comes to performance, convenience, maintainability or in any aspect that would make the other more advisable to use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T09:27:27+00:00Added an answer on June 9, 2026 at 9:27 am

    Use SensioFrameworkExtraBundle, already shipped with Symfony 2. Having route names and paths in the same place of controller action is the right way to go. If you want to modify a path or action name simply go to that action, without editing routing.yml.

    Then give a name to your “grouped routes” e.g. bundle_controller pattern or maybe bundle_entity (if controller is used for CRUD on a single entity):

    # app/config/routing.yml
    acme_hello_my_annotated_controller:
        resource: "@AcmeHelloBundle/Controller/MyAnnotatedController.php"
        type: annotation
    

    Eventually prefixing all paths defined by annotations (add prefix: /my/path/prefix).

    EDIT: don’t know anything about performances. I’m talking only about convenience.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just a quick question. Is there any performance difference between using PDO::fetchAll() and PDO::fetch()
Is there any difference between using the @PostConstruct annotation and declaring the same method
Is there any difference in using login_required decorator in urls.py and in views.py ?
When dealing with a collection of key/value pairs is there any difference between using
I was wondering if there are any performance differences when using simple queries as:
Is there any conceivable reason why I would see different results using unicode string
Is there any difference between using: $(document).ready(function(){ vs. $(function(){ Does one of these work
Is there any difference in using SomeEvent(arg); and SomeEvent.Invoke(arg); If there is no significant
Is there any difference in using one over the other? Should I be retrieving
Is there any difference between using the field ID or _ID from a MongoDB

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.