mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:14:04 +00:00
Only use JobRetryRequested in Laravel 8
This commit is contained in:
parent
a83568ded2
commit
e442bdb644
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ class QueueTenancyBootstrapper implements TenancyBootstrapper
|
||||||
});
|
});
|
||||||
|
|
||||||
if (Str::startsWith(app()->version(), '8')) {
|
if (Str::startsWith(app()->version(), '8')) {
|
||||||
// queue:retry tenancy is only supported in Laravel 8
|
// JobRetryRequested only exists since Laravel 8
|
||||||
$dispatcher->listen(JobRetryRequested::class, function ($event) use (&$previousTenant) {
|
$dispatcher->listen(JobRetryRequested::class, function ($event) use (&$previousTenant) {
|
||||||
$previousTenant = tenant();
|
$previousTenant = tenant();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue