You are here

public function DevelopmentEnvironmentController::__construct in Development Environment 8

Constructs a DevelopmentEnvironmentController object.

Parameters

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

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

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

\Drupal\development_environment\Service\VarDumpServiceInterface $varDumpService: The variable dump service.

\Drupal\Core\Form\FormBuilderInterface $formBuilder: The form builder interface.

File

src/Controller/DevelopmentEnvironmentController.php, line 70

Class

DevelopmentEnvironmentController
The DevelopmentEnvironmentController class.

Namespace

Drupal\development_environment\Controller

Code

public function __construct(Connection $database, DateFormatterInterface $dateFormatter, AccountProxyInterface $currentUser, VarDumpServiceInterface $varDumpService, FormBuilderInterface $formBuilder) {
  $this->database = $database;
  $this->dateFormatter = $dateFormatter;
  $this->currentUser = $currentUser;
  $this->varDumpService = $varDumpService;
  $this->formBuilder = $formBuilder;
}