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

[8.x] Allow dynamically customizing connection for queued event listener #38005

Merged

Conversation

nikazooz
Copy link
Contributor

@nikazooz nikazooz commented Jul 14, 2021

Currently its possible to dynamically determine queue that the event listener will be pushed on using viaQueue method, but there is no way to dynamically determine the queue connection. We can only specify the connection when defining the listener, using the connection property.

This adds the ability to dynamically determine the queue connection the listener should use, by implementing viaConnection method.

Approach was mentioned here: #35469 (comment)

@GrahamCampbell GrahamCampbell changed the title Allow dynamically customizing connection for queued event listener [8.x] Allow dynamically customizing connection for queued event listener Jul 14, 2021
@taylorotwell taylorotwell merged commit 416fc17 into laravel:8.x Jul 14, 2021
@nikazooz nikazooz deleted the custom-queue-connection-for-queued-listener branch July 14, 2021 19:56
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

Successfully merging this pull request may close these issues.

None yet

2 participants