You are here

public function DefaultController::__construct in Shorten URLs 8.2

Same name in this branch
  1. 8.2 src/Controller/DefaultController.php \Drupal\shorten\Controller\DefaultController::__construct()
  2. 8.2 modules/shorten_cs/src/Controller/DefaultController.php \Drupal\shorten_cs\Controller\DefaultController::__construct()
  3. 8.2 modules/record_shorten/src/Controller/DefaultController.php \Drupal\record_shorten\Controller\DefaultController::__construct()

DefaultController constructor.

Parameters

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

Drupal\Core\Render\RendererInterface $renderer: The renderer service.

File

modules/record_shorten/src/Controller/DefaultController.php, line 37

Class

DefaultController
Default controller for the record_shorten module.

Namespace

Drupal\record_shorten\Controller

Code

public function __construct(Connection $database, RendererInterface $renderer) {
  $this->database = $database;
  $this->renderer = $renderer;
}