You are here

public function CaptchaQuestionsDblogController::__construct in Captcha Questions 8

CaptchaQuestionsDblog Constuctor.

Parameters

\Drupal\Core\Datetime\DateFormatter $dateFormatter: DateFormatter services object.

\Drupal\Core\Database\Connection $database: The Database Connection.

File

captcha_questions_dblog/src/Controller/CaptchaQuestionsDblogController.php, line 47

Class

CaptchaQuestionsDblogController
Provides route responses for the Example module.

Namespace

Drupal\captcha_questions_dblog\Controller

Code

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