1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 09:54:05 +00:00

Only use JobRetryRequested in Laravel 8

This commit is contained in:
Samuel Štancl 2021-12-31 18:29:05 +01:00 committed by Victor R
parent f198dfff44
commit 121975bda7

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();