You are here

public function ContentLogController::__construct in Content Synchronization 8.2

Same name and namespace in other branches
  1. 8 src/Controller/ContentLogController.php \Drupal\content_sync\Controller\ContentLogController::__construct()
  2. 3.0.x src/Controller/ContentLogController.php \Drupal\content_sync\Controller\ContentLogController::__construct()

Constructs a LogController object.

Parameters

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: A module handler.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.

File

src/Controller/ContentLogController.php, line 85

Class

ContentLogController
Returns responses for content_sync routes.

Namespace

Drupal\content_sync\Controller

Code

public function __construct(Connection $database, ModuleHandlerInterface $module_handler, DateFormatterInterface $date_formatter, FormBuilderInterface $form_builder, EntityTypeManagerInterface $entity_type_manager) {
  $this->database = $database;
  $this->moduleHandler = $module_handler;
  $this->dateFormatter = $date_formatter;
  $this->formBuilder = $form_builder;
  $this->userStorage = $entity_type_manager
    ->getStorage('user');
}