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
Autoloading of Routes From Bundles #22700
Comments
That's true for projects that are currently built on top of the Symfony Standard Edition. However, with Symfony Flex this will change and routes can be provided through recipes. That's why I am going to close here. |
@xabbuh: Perfect, thank you. Edit: bundle_routes:
resource: "../../src/*/Configuration/routing.yml" |
@lucascdsilva Have a look at https://github.com/rollerworks/RouteAutowiringBundle 👍 |
@sstok tanks, I will look |
I find it incredible that this does not exist, and the bundle cannot be completely isolated and does not depend on the global configuration, and I don't like the idea of creating a recipe to write in the global system configuration. 🔥 thanks @sstok |
Finally I have used the solution the @kiler129, thanks |
Dependency Injection Extensions are great way to let the bundle autoload their services and other configuration details. However routes needs to be included manually in main app routing file.
Is there any reason why extension or bundle cannot register routes? I know about advanced loaders, but isn't dynamically loading routes slow on production?
The text was updated successfully, but these errors were encountered: