1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:14:04 +00:00

Only use JobRetryRequested in Laravel 8

This commit is contained in:
Samuel Štancl 2021-12-31 18:29:05 +01:00
parent a83568ded2
commit e442bdb644

View file

@ -54,7 +54,7 @@ class QueueTenancyBootstrapper implements TenancyBootstrapper
});
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) {
$previousTenant = tenant();