mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 05:44:04 +00:00
Move DatabaseManager
This commit is contained in:
parent
16a598bb17
commit
579779b88b
9 changed files with 13 additions and 27 deletions
|
|
@ -4,12 +4,10 @@ declare(strict_types=1);
|
|||
|
||||
namespace Stancl\Tenancy\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Database\Console\Migrations\MigrateCommand;
|
||||
use Illuminate\Database\Migrations\Migrator;
|
||||
use Stancl\Tenancy\Concerns\DealsWithMigrations;
|
||||
use Stancl\Tenancy\Concerns\HasATenantsOption;
|
||||
use Stancl\Tenancy\DatabaseManager;
|
||||
use Stancl\Tenancy\Events\DatabaseMigrated;
|
||||
use Stancl\Tenancy\Events\MigratingDatabase;
|
||||
|
||||
|
|
@ -17,8 +15,6 @@ class Migrate extends MigrateCommand
|
|||
{
|
||||
use HasATenantsOption, DealsWithMigrations;
|
||||
|
||||
protected $database;
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
|
|
@ -31,10 +27,9 @@ class Migrate extends MigrateCommand
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(Migrator $migrator, DatabaseManager $database)
|
||||
public function __construct(Migrator $migrator)
|
||||
{
|
||||
parent::__construct($migrator);
|
||||
$this->database = $database;
|
||||
|
||||
$this->setName('tenants:migrate');
|
||||
$this->specifyParameters();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue