/** * Returns a new TenantMigrator instance. * * @param MigrationRepositoryInterface $repository * @param Resolver $resolver * @param Filesystem $files * @param TenantManager $manager */ public function __construct(MigrationRepositoryInterface $repository, Resolver $resolver, Filesystem $files, TenantManager $manager) { $this->manager = $manager; // There is nothing special about the TenantMigrationResolver class, so let's just new up one. $this->tenantMigrationResolver = new TenantMigrationResolver(); parent::__construct($repository, $resolver, $files); }
/** * Migrator constructor. * * @param \Illuminate\Container\Container $container * @param \Illuminate\Database\Migrations\MigrationRepositoryInterface $repository * @param \Illuminate\Database\ConnectionResolverInterface $resolver * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(Container $container, MigrationRepositoryInterface $repository, Resolver $resolver, Filesystem $files) { $this->container = $container; parent::__construct($repository, $resolver, $files); }
/** * Construct an instance of a NamespacedMigrator. * * @param MigrationRepositoryInterface $repository * @param Resolver $resolver * @param Filesystem $files * @param string $namespace */ public function __construct(MigrationRepositoryInterface $repository, Resolver $resolver, Filesystem $files, $namespace = '') { parent::__construct($repository, $resolver, $files); $this->namespace = $namespace; }
/** * Create a new migrator instance. * * @param \Jlapp\SmartSeeder\SmartSeederRepository $repository * @param \Illuminate\Database\ConnectionResolverInterface $resolver * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct(SmartSeederRepository $repository, Resolver $resolver, Filesystem $files) { parent::__construct($repository, $resolver, $files); }
/** * Create a new migrator instance. * * @param \Illuminate\Database\Migrations\MigrationRepositoryInterface $repository * @param \Illuminate\Database\ConnectionResolverInterface $resolver * @param \Illuminate\Filesystem\Filesystem $files * @param \Illuminate\Contracts\Container\Container $container */ public function __construct(MigrationRepositoryInterface $repository, ConnectionResolverInterface $resolver, Filesystem $files, ContainerContract $container) { parent::__construct($repository, $resolver, $files); $this->setContainer($container); }
/** * Create a new migrator instance. * * @param string $table * @param \Illuminate\Database\Migrations\MigrationRepositoryInterface $repository * @param \Illuminate\Database\ConnectionResolverInterface $resolver * @param \Illuminate\Filesystem\Filesystem $files */ public function __construct($table, MigrationRepositoryInterface $repository, Resolver $resolver, Filesystem $files) { $this->table = $table; parent::__construct($repository, $resolver, $files); }