1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-15 23:24:03 +00:00

Move DatabaseManager

This commit is contained in:
Samuel Štancl 2020-05-30 15:38:29 +02:00
parent 16a598bb17
commit 579779b88b
9 changed files with 13 additions and 27 deletions

View file

@ -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();