You are here

public function DrushLogMigrateMessage::__construct in Migrate Manifest 3.x

Same name and namespace in other branches
  1. 8.2 src/DrushLogMigrateMessage.php \Drupal\migrate_manifest\DrushLogMigrateMessage::__construct()
  2. 8 src/DrushLogMigrateMessage.php \Drupal\migrate_manifest\DrushLogMigrateMessage::__construct()

File

src/DrushLogMigrateMessage.php, line 21

Class

DrushLogMigrateMessage
Simple Migrate Message implementation that uses drush to output.

Namespace

Drupal\migrate_manifest

Code

public function __construct(LoggerInterface $logger = NULL) {
  if (!isset($logger)) {
    $logger = Drush::logger();
  }
  $this->logger = $logger;
}