Passing an argument for the viaQueue listener's method #39984
Unanswered
knyazevocrv
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes I need to define a queue name, that depends on an argument (event argument in EventServiceProvider)
framework/src/Illuminate/Events/Dispatcher.php
Line 569 in cf00a56
$queue = method_exists($listener, 'viaQueue')
? $listener->viaQueue($arguments[0])
: $listener->queue ?? null;
Beta Was this translation helpful? Give feedback.
All reactions