Skip to content

Commit 5c52f37

Browse files
Merge pull request #148 from Kuodster/main
Fix dependency injection to support lumen
2 parents a670035 + c516381 commit 5c52f37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Services/Migrator.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use DragonCode\Support\Facades\Helpers\Str;
1515
use DragonCode\Support\Filesystem\File;
1616
use Illuminate\Console\OutputStyle;
17-
use Illuminate\Contracts\Foundation\Application;
17+
use Illuminate\Contracts\Container\Container;
1818
use Illuminate\Support\Facades\DB;
1919
use Throwable;
2020

@@ -25,7 +25,7 @@ public function __construct(
2525
protected Notification $notification,
2626
protected ActionRepository $repository,
2727
protected Config $config,
28-
protected Application $laravel
28+
protected Container $container
2929
) {}
3030

3131
public function setConnection(?string $connection): self
@@ -111,7 +111,7 @@ protected function hasAsync(Action $action, Options $options): bool
111111

112112
protected function runMethod(Action $action, string $method, bool $transactions, int $attempts): void
113113
{
114-
$callback = fn () => $this->laravel->call([$action, $method]);
114+
$callback = fn () => $this->container->call([$action, $method]);
115115

116116
$transactions ? DB::transaction($callback, $attempts) : $callback();
117117
}

0 commit comments

Comments
 (0)