Skip to content

Custom namespace by makers #368

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

Closed
JodyLognoul opened this issue Mar 5, 2019 · 3 comments
Closed

Custom namespace by makers #368

JodyLognoul opened this issue Mar 5, 2019 · 3 comments

Comments

@JodyLognoul
Copy link

JodyLognoul commented Mar 5, 2019

I was looking for a way to change the destination namespace for some makers.

I came up with this idea:

# config/packages/dev/maker.yaml
maker:
  root_namespace: '%env(resolve:MAKER_NAMESPACE)%'

Then in the command line:

$ MAKER_NAMESPACE=App\UI\Web php bin/console make:controller
$ MAKER_NAMESPACE=App\UI\Cli php bin/console make:command
$ MAKER_NAMESPACE=App\Domain php bin/console make:entity

WDYT? Is there an other/better solution to achieve this?

Thanks

@JodyLognoul JodyLognoul changed the title Custom namespace by make command Custom namespace by makers Mar 5, 2019
@kermitsxb
Copy link

kermitsxb commented Feb 24, 2022

Any update on this issue/feature ?

@jrushlow
Copy link
Collaborator

We have no immediate plans to implement this into MakerBundle. However, PR's are always welcome!

@jrushlow jrushlow closed this as not planned Won't fix, can't repro, duplicate, stale Jul 20, 2022
@c33s
Copy link

c33s commented Aug 23, 2022

@jrushlow there is a PR for this feature. i would vote for reopening this ticket. it is too important for developing DDD applications.
#378

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

4 participants