public function OAuthController::__construct in OAuth 1.0 8
Same name and namespace in other branches
- 8.2 src/Controller/OAuthController.php \Drupal\oauth\Controller\OAuthController::__construct()
Constructs an OauthController object.
Parameters
\Drupal\Core\Database\Connection $connection: The database service.
\Drupal\Core\Utility\LinkGeneratorInterface $link_generator: The link generator service.
File
- src/
Controller/ OAuthController.php, line 46 - Contains \Drupal\oauth\Controller\OAuthController.
Class
- OAuthController
- Controller routines for oauth routes.
Namespace
Drupal\oauth\ControllerCode
public function __construct(Connection $connection, LinkGeneratorInterface $link_generator) {
$this->connection = $connection;
$this->linkGenerator = $link_generator;
}