__construct() public method

Construct a migration configuration object.
public __construct ( Doctrine\DBAL\Connection $connection, Doctrine\DBAL\Migrations\OutputWriter $outputWriter = null, Doctrine\DBAL\Migrations\Finder\MigrationFinderInterface $finder = null )
$connection Doctrine\DBAL\Connection A Connection instance
$outputWriter Doctrine\DBAL\Migrations\OutputWriter A OutputWriter instance
$finder Doctrine\DBAL\Migrations\Finder\MigrationFinderInterface Migration files finder
 public function __construct()
 {
     $db = \Database::get();
     parent::__construct($db);
     $directory = DIR_BASE_CORE . '/' . DIRNAME_CLASSES . '/Updater/Migrations/Migrations';
     $this->setName(t('concrete5 Migrations'));
     $this->setMigrationsNamespace('\\Concrete\\Core\\Updater\\Migrations\\Migrations');
     $this->setMigrationsDirectory($directory);
     $this->registerMigrationsFromDirectory($directory);
     $this->setMigrationsTableName('SystemDatabaseMigrations');
 }
Esempio n. 2
0
 public function __construct(Container $container, Connection $connection, OutputWriter $outputWriter = NULL)
 {
     $this->container = $container;
     parent::__construct($connection, $outputWriter);
 }