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

Use dependency injection in make commands #49

Open
ck-developer opened this issue Nov 23, 2017 · 2 comments
Open

Use dependency injection in make commands #49

ck-developer opened this issue Nov 23, 2017 · 2 comments

Comments

@ck-developer
Copy link
Contributor

Hi I have a question

  • why not use dependency injection in make commands ?

example generate an entity in with the doctrine config:
https://github.com/symfony/recipes/blob/master/doctrine/doctrine-bundle/1.6/config/packages/doctrine.yaml#L13

@lcetinsoy
Copy link

Strong +1 on it : If I want to group my code by bounded context and have one folder for each (or one for modules) I cannot have it. Would be nice to be able to specify a folder destination through config for all maker commands.

And god sf4 commands starts so quickly it so nice and a joy. I consider using it a lot for bootstrapping app if we can have some flexibility on output folders

@weaverryan
Copy link
Member

I do think the bundle should start adding flexibility as config options (but not as interactive questions). It’s just a matter of getting it done - there are a lot of other commands and enhancements that need to be added very soon. I’m busy with those for the current time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants