You are here

public function DbtngExampleController::__construct in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/dbtng_example/src/Controller/DbtngExampleController.php \Drupal\dbtng_example\Controller\DbtngExampleController::__construct()

Construct a new controller.

Parameters

\Drupal\dbtng_example\DbtngExampleRepository $repository: The repository service.

File

dbtng_example/src/Controller/DbtngExampleController.php, line 38

Class

DbtngExampleController
Controller for DBTNG Example.

Namespace

Drupal\dbtng_example\Controller

Code

public function __construct(DbtngExampleRepository $repository) {
  $this->repository = $repository;
}