mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:44:02 +00:00
[2.1.0] Central queue connections (#181)
* Central queues * Better dependency injection * tenancy=false => central=true; move config to env setup * Apply fixes from StyleCI
This commit is contained in:
parent
d5b01219fd
commit
cfcb2574c2
4 changed files with 34 additions and 13 deletions
|
|
@ -99,6 +99,10 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
|
|||
'tenancy.migrations_directory' => database_path('../migrations'),
|
||||
'tenancy.storage_drivers.db.connection' => 'central',
|
||||
'tenancy.bootstrappers.redis' => \Stancl\Tenancy\TenancyBootstrappers\RedisTenancyBootstrapper::class,
|
||||
'queue.connections.central' => [
|
||||
'driver' => 'sync',
|
||||
'central' => true,
|
||||
],
|
||||
]);
|
||||
|
||||
$app->singleton(\Stancl\Tenancy\TenancyBootstrappers\RedisTenancyBootstrapper::class);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue