public function DefaultController::__construct in Shorten URLs 8.2
Same name in this branch
- 8.2 src/Controller/DefaultController.php \Drupal\shorten\Controller\DefaultController::__construct()
- 8.2 modules/shorten_cs/src/Controller/DefaultController.php \Drupal\shorten_cs\Controller\DefaultController::__construct()
- 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\ControllerCode
public function __construct(Connection $database, RendererInterface $renderer) {
$this->database = $database;
$this->renderer = $renderer;
}