You are here

public function AbjsDefaultController::__construct in A/B Test JS 8

Same name and namespace in other branches
  1. 2.0.x 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');
}