Skip to content

Add possibility to override Message and MessageHandler namespace #1130

Open
@welcoMattic

Description

@welcoMattic

The make command that generates Message and MessageHandler doesn't provide a way to customize the namespace, by default Message are under $rootNamespace.'\Message' and MessageHandler under $rootNamespace.'\MessageHandler'

It could be nice to give to user the ability to customize those namespaces like:

$rootNamespace.'\Messenger\Message' and $rootNamespace.'\Messenger\Handler'

I see it as a new config option:

messenger_namespaces:
    message: 'Messenger\Message'
    handler: 'Messenger\Handler'

It also lets user organize all Messenger related classes under an unique namespace:

messenger_namespaces:
    message: 'Messenger'
    handler: 'Messenger'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions