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 6091577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:20:38+00:00 2026-05-23T12:20:38+00:00

I want to automatically add routes from my bundle without adding a link to

  • 0

I want to automatically add routes from my bundle without adding a link to my bundle’s routing scheme into routing.yml. For example, this can be admin’s bundle. Each application that use this bundle will get special /admin/xxx routes without manual editing of routing scheme.

For services it’s pretty easy with overriding of Extension->load() method, but for routing I couldn’t find a solution.

How can I implement desired feature?

  • 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-05-23T12:20:39+00:00Added an answer on May 23, 2026 at 12:20 pm

    At the moment you can’t easily hook into the routing like that from a Bundle, that’s why the framework stuff itself like the profiler and web debug toolbar have to be included from the routing_dev.yml file.

    However it would be doable I believe to add an event dispatched when the routing is parsed I guess, allowing bundles to hook into it to add their own routes to the RouteCollection. I created an issue to that effect on the Symfony tracker.

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

Sidebar

Related Questions

I want to automatically add files to an Xcode project that is created from
I want to automatically commit the database when we copy files from one branch
I get poorly formatted invoice-related email from my payment gateway. I want to automatically
I have an access macro, that I want to run automatically from a batch
I want to automatically add some items to a model's ManyToMany field when it
system(ssh test.host.com); its asking for permentaly add key or not ? I want automatically
How can I automatically add a node to a specific nodeQueue when this is
I want to run a simple Apache Camel example that copies files from one
I want to automatically add entries to python's sys.path variable when run by my
I'm using colorbox on: http://www.rheolas.com/tsalapeng I want to set it to automatically add all

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.