You are here

public function DatabaseSanitize::__construct in Database Sanitize 8

DatabaseSanitize constructor.

Parameters

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger: The LoggerChannelFactoryInterface object.

Throws

\Exception

File

src/DatabaseSanitize.php, line 44

Class

DatabaseSanitize
Class DatabaseSanitize.

Namespace

Drupal\database_sanitize

Code

public function __construct(LoggerChannelFactoryInterface $logger) {
  $this->logger = $logger
    ->get('database_sanitize');
  $locations = $this
    ->getSourceLocations();
  $output_dir = $this
    ->getOutputDir();
  $this->mergeYaml = new MergeYaml([
    self::DATABASE_SANITIZE_FILE_NAME,
  ], $locations, $output_dir);
}