You are here

public function SchemaMigrator::__construct in Schema 8

Parameters

SchemaComparison $comparison:

DatabaseSchemaInspectionInterface $dbschema:

SchemaMigratorOptions $options:

File

src/Migration/SchemaMigrator.php, line 40
Contains Drupal\schema\Migration\SchemaMigrator.

Class

SchemaMigrator
Modifies the database schema to match the declared schema.

Namespace

Drupal\schema\Migration

Code

public function __construct(SchemaComparison $comparison, DatabaseSchemaInspectionInterface $dbschema, SchemaMigratorOptions $options = NULL) {
  $this->comparison = $comparison;
  $this->dbschema = $dbschema;
  $this->options = $options;
  if ($this->options == NULL) {
    $this->options = new SchemaMigratorOptions();
  }
  $this->logger = \Drupal::logger('schema');
}