Skip to content

Commit 15e0224

Browse files
committed
support driver
1 parent 54cf9db commit 15e0224

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Illuminate/Concurrency/ConcurrencyManager.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public function createSyncDriver(array $config)
7171
*/
7272
public function getDefaultInstance()
7373
{
74-
return $this->app['config']['concurrency.default'] ?? 'process';
74+
return $this->app['config']['concurrency.default']
75+
?? $this->app['config']['concurrency.driver']
76+
?? 'process';
7577
}
7678

7779
/**
@@ -83,6 +85,7 @@ public function getDefaultInstance()
8385
public function setDefaultInstance($name)
8486
{
8587
$this->app['config']['concurrency.default'] = $name;
88+
$this->app['config']['concurrency.driver'] = $name;
8689
}
8790

8891
/**

0 commit comments

Comments
 (0)