public function OAuth2Controller::__construct in OAuth2 Server 8
Same name and namespace in other branches
- 2.0.x src/Controller/OAuth2Controller.php \Drupal\oauth2_server\Controller\OAuth2Controller::__construct()
Constructs a new \Drupal\oauth2_server\Controller\OAuth2Controller object.
Parameters
\Drupal\oauth2_server\OAuth2StorageInterface $oauth2_storage: The OAuth2 storage object.
File
- src/
Controller/ OAuth2Controller.php, line 38
Class
- OAuth2Controller
- Class OAuth2 Controller.
Namespace
Drupal\oauth2_server\ControllerCode
public function __construct(OAuth2StorageInterface $oauth2_storage) {
$this->storage = $oauth2_storage;
}