Skip to content

Commit a2f5647

Browse files
fix: remove use of laravel 11 specific trait to keep supporting laravel 10
Fixes #67
1 parent 3eb41d8 commit a2f5647

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/Jobs/BackupJob.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,23 @@
44

55
namespace Itiden\Backup\Jobs;
66

7+
use Illuminate\Bus\Queueable;
78
use Illuminate\Contracts\Auth\Authenticatable;
89
use Illuminate\Contracts\Cache\Repository;
910
use Illuminate\Contracts\Queue\ShouldQueue;
10-
use Illuminate\Foundation\Queue\Queueable;
11+
use Illuminate\Foundation\Bus\Dispatchable;
12+
use Illuminate\Queue\InteractsWithQueue;
13+
use Illuminate\Queue\SerializesModels;
1114
use Itiden\Backup\Backuper;
1215
use Itiden\Backup\StateManager;
1316

1417
final class BackupJob implements ShouldQueue
1518
{
19+
// TODO(@neoisrecursive): Refactor this to use the `Illuminate\Foundation\Queue\Queueable` trait when dropping support for Laravel 10.
1620
use Queueable;
21+
use Dispatchable;
22+
use SerializesModels;
23+
use InteractsWithQueue;
1724

1825
/**
1926
* Create a new job instance.

src/Jobs/RestoreJob.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,23 @@
44

55
namespace Itiden\Backup\Jobs;
66

7+
use Illuminate\Bus\Queueable;
78
use Illuminate\Contracts\Auth\Authenticatable;
89
use Illuminate\Contracts\Cache\Repository;
910
use Illuminate\Contracts\Queue\ShouldQueue;
10-
use Illuminate\Foundation\Queue\Queueable;
11+
use Illuminate\Foundation\Bus\Dispatchable;
12+
use Illuminate\Queue\InteractsWithQueue;
13+
use Illuminate\Queue\SerializesModels;
1114
use Itiden\Backup\Restorer;
1215
use Itiden\Backup\StateManager;
1316

1417
final class RestoreJob implements ShouldQueue
1518
{
19+
// TODO(@neoisrecursive): Refactor this to use the `Illuminate\Foundation\Queue\Queueable` trait when dropping support for Laravel 10.
1620
use Queueable;
21+
use Dispatchable;
22+
use SerializesModels;
23+
use InteractsWithQueue;
1724

1825
/**
1926
* Create a new job instance.

0 commit comments

Comments
 (0)