public function MainController::__construct in Bakery Single Sign-On System 8.2
Initialize bakery service.
Parameters
\Drupal\bakery\Kitchen $kitchen: For bakery service.
\Drupal\Core\Database\Connection $connection: Database connection for saving mapping storage.
File
- src/
Controller/ MainController.php, line 43 - Router call back functions for bakery SSO functions.
Class
- MainController
- Route callback functionlities.
Namespace
Drupal\bakery\ControllerCode
public function __construct(Kitchen $kitchen, Connection $connection) {
$this->kitchen = $kitchen;
$this->connection = $connection;
}