You are here

public function AbjsDefaultController::__construct in A/B Test JS 2.0.x

Same name and namespace in other branches
  1. 8 src/Controller/AbjsDefaultController.php \Drupal\abjs\Controller\AbjsDefaultController::__construct()

Constructs a new FeedTypeForm object.

Parameters

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The services of date.

\Drupal\Core\Render\RendererInterface $renderer: The render object.

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

File

src/Controller/AbjsDefaultController.php, line 55

Class

AbjsDefaultController
Default controller for the abjs module.

Namespace

Drupal\abjs\Controller

Code

public function __construct(DateFormatterInterface $date_formatter, RendererInterface $renderer, Connection $database) {
  $this->dateFormatter = $date_formatter;
  $this->renderer = $renderer;
  $this->database = $database;
  $this->userStorage = $this
    ->entityTypeManager()
    ->getStorage('user');
}