public function DbtngExampleController::__construct in Examples for Developers 3.x
Same name and namespace in other branches
- 8 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
- modules/
dbtng_example/ src/ Controller/ DbtngExampleController.php, line 38
Class
- DbtngExampleController
- Controller for DBTNG Example.
Namespace
Drupal\dbtng_example\ControllerCode
public function __construct(DbtngExampleRepository $repository) {
$this->repository = $repository;
}