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

Standardize message buses naming #12548

Closed
pamil opened this issue Apr 20, 2021 · 3 comments
Closed

Standardize message buses naming #12548

pamil opened this issue Apr 20, 2021 · 3 comments

Comments

@pamil
Copy link
Contributor

pamil commented Apr 20, 2021

References to #12546 (comment).

@lchrusciel
Copy link
Member

lchrusciel commented Apr 20, 2021

We have 7 busses defined across 4 products. Each of them with a different name. We should unify this configuration.

At Sylius (https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/ApiBundle/Resources/config/app/config.yaml#L33-L43 ) we should change:

  • sylius_default.bus to sylius.command_bus
  • sylius_event.bus to sylius.event_bus
  • make an alias sylius_default.bus that will point out to sylius.command_bus
  • make an alias sylius_event.bus that will point out to sylius.event_bus
  • Remove from event config all middleware and add allow_no_handlers

at Invoicing Plugin:

at Refund Plugin:

@pamil
Copy link
Contributor Author

pamil commented Apr 20, 2021

To add up on top of @lchrusciel's comment, these sylius_default.bus and sylius_event.bus should be marked as deprecated - https://symfony.com/blog/new-in-symfony-4-3-deprecating-service-aliases.

@GSadee
Copy link
Member

GSadee commented May 17, 2021

I assume, this issue has been resolved by #12602

@GSadee GSadee closed this as completed May 17, 2021
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