-
Notifications
You must be signed in to change notification settings - Fork 11.7k
[5.0] Dispatch commands through a pipeline #7189
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
Conversation
Sending commands through a pipeline will allow for easier decoration of the command bus. Additional dispatchers can be used as pipes and can independently handle resolving handlers and firing handle method.
src/Illuminate/Bus/Dispatcher.php
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't allow this. Always require the injected object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @GrahamCampbell -- I will make all the necessary changes. I was just really putting this out there as a feeler to see if this would be something other users might be interested in.
|
@GrahamCampbell thanks, made recommended changes |
src/Illuminate/Bus/Dispatcher.php
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null isn't correct
|
more updates, per @GrahamCampbell |
|
👍 I love it! |
|
Please squash to one commit. |
|
Did this a little differently. ^ In BusServiceProvider |
Sending commands through a pipeline will allow for easier decoration of the command bus. Additional dispatchers can be used as pipes and can independently handle resolving handlers and firing handle method.