Skip to content

Custom namespace by makers #368

Closed as not planned
Closed as not planned
@JodyLognoul

Description

@JodyLognoul

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions