You are here

public function MessageController::__construct in Migrate Tools 8

Same name and namespace in other branches
  1. 8.5 src/Controller/MessageController.php \Drupal\migrate_tools\Controller\MessageController::__construct()
  2. 8.2 src/Controller/MessageController.php \Drupal\migrate_tools\Controller\MessageController::__construct()
  3. 8.3 src/Controller/MessageController.php \Drupal\migrate_tools\Controller\MessageController::__construct()
  4. 8.4 src/Controller/MessageController.php \Drupal\migrate_tools\Controller\MessageController::__construct()

Constructs a MessageController object.

Parameters

\Drupal\Core\Database\Connection $database: A database connection.

File

src/Controller/MessageController.php, line 44
Contains \Drupal\migrate_tools\Controller\MessageController.

Class

MessageController
Returns responses for migrate_tools message routes.

Namespace

Drupal\migrate_tools\Controller

Code

public function __construct(Connection $database) {
  $this->database = $database;
}