public function StorageComparer::__construct

Constructs the Configuration storage comparer.

Parameters

\Drupal\Core\Config\StorageInterface $source_storage: Storage controller object used to read configuration.

\Drupal\Core\Config\StorageInterface $target_storage: Storage controller object used to write configuration.

File

drupal/core/lib/Drupal/Core/Config/StorageComparer.php, line 62
Contains \Drupal\Core\Config\StorageComparer.

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

public function __construct(StorageInterface $source_storage, StorageInterface $target_storage) {
  $this->sourceStorage = $source_storage;
  $this->targetStorage = $target_storage;
  $this->changelist = $this
    ->getEmptyChangelist();
}