mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-15 23:24:03 +00:00
Move DatabaseManager
This commit is contained in:
parent
16a598bb17
commit
579779b88b
9 changed files with 13 additions and 27 deletions
|
|
@ -7,7 +7,6 @@ namespace Stancl\Tenancy\Commands;
|
|||
use Illuminate\Database\ConnectionResolverInterface;
|
||||
use Illuminate\Database\Console\Seeds\SeedCommand;
|
||||
use Stancl\Tenancy\Concerns\HasATenantsOption;
|
||||
use Stancl\Tenancy\DatabaseManager;
|
||||
use Stancl\Tenancy\Events\DatabaseSeeded;
|
||||
use Stancl\Tenancy\Events\SeedingDatabase;
|
||||
|
||||
|
|
@ -15,8 +14,6 @@ class Seed extends SeedCommand
|
|||
{
|
||||
use HasATenantsOption;
|
||||
|
||||
protected $database;
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
|
|
@ -29,10 +26,9 @@ class Seed extends SeedCommand
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(ConnectionResolverInterface $resolver, DatabaseManager $database)
|
||||
public function __construct(ConnectionResolverInterface $resolver)
|
||||
{
|
||||
parent::__construct($resolver);
|
||||
$this->database = $database;
|
||||
|
||||
$this->setName('tenants:seed');
|
||||
$this->specifyParameters();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue