1

I'm working on creating a Symfony bundle, so far so good, but I'm running into a problem when I want to generate a configuration/route file when installing the bundle. When I install the bundle I would like it to generate the configuration files in the app and not have to add them by hand. Could someone help me please?

I tried to load yaml / xml files within my Extension file, I tried to import via services.xml but I can't make it working.

Thank you ! :)

Lambert
  • 13
  • 4
  • Maybe, you are looking for recipes? See https://symfonycasts.com/screencast/symfony/flex-recipes – Nico Haase Jun 29 '21 at 14:08
  • Or does this answer your question? https://stackoverflow.com/questions/58595101/how-write-a-symfony-flex-recipe-for-a-new-bundle – Nico Haase Jun 29 '21 at 14:09
  • Does this answer your question? [Load routes.yaml in external bundle without config. in project](https://stackoverflow.com/questions/54401651/load-routes-yaml-in-external-bundle-without-config-in-project) – yivi Jun 29 '21 at 14:21
  • I’ll try to do with recipes, I hadn't thought of that, thank you for your quicks replies both :) I’ll let you know how it’s going ! – Lambert Jun 29 '21 at 14:36
  • Hello, how did you solve the issue? – the_nuts Jun 10 '22 at 08:40

0 Answers0