예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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);
 }
예제 #3
0
 /**
  * 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;
 }
예제 #4
0
 /**
  * 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);
 }
예제 #5
0
 /**
  * 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);
 }
예제 #6
0
 /**
  * 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);
 }