public function DbLogController::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/dblog/src/Controller/DbLogController.php \Drupal\dblog\Controller\DbLogController::__construct()
Constructs a DbLogController 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
- core/
modules/ dblog/ src/ Controller/ DbLogController.php, line 89
Class
- DbLogController
- Returns responses for dblog routes.
Namespace
Drupal\dblog\ControllerCode
public function __construct(Connection $database, ModuleHandlerInterface $module_handler, DateFormatterInterface $date_formatter, FormBuilderInterface $form_builder) {
$this->database = $database;
$this->moduleHandler = $module_handler;
$this->dateFormatter = $date_formatter;
$this->formBuilder = $form_builder;
$this->userStorage = $this
->entityTypeManager()
->getStorage('user');
}