public static function Oauth2GrantBase::create in Simple OAuth (OAuth2) & OpenID Connect 8.2
Same name and namespace in other branches
- 8.4 src/Plugin/Oauth2GrantBase.php \Drupal\simple_oauth\Plugin\Oauth2GrantBase::create()
- 8.3 src/Plugin/Oauth2GrantBase.php \Drupal\simple_oauth\Plugin\Oauth2GrantBase::create()
- 5.x src/Plugin/Oauth2GrantBase.php \Drupal\simple_oauth\Plugin\Oauth2GrantBase::create()
Creates an instance of the plugin.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the plugin.
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Return value
static Returns an instance of this plugin.
Overrides ContainerFactoryPluginInterface::create
4 methods override Oauth2GrantBase::create()
- AuthorizationCode::create in simple_oauth_extras/
src/ Plugin/ Oauth2Grant/ AuthorizationCode.php - Creates an instance of the plugin.
- Implicit::create in simple_oauth_extras/
src/ Plugin/ Oauth2Grant/ Implicit.php - Creates an instance of the plugin.
- Password::create in src/
Plugin/ Oauth2Grant/ Password.php - Creates an instance of the plugin.
- RefreshToken::create in simple_oauth_extras/
src/ Plugin/ Oauth2Grant/ RefreshToken.php - Creates an instance of the plugin.
File
- src/
Plugin/ Oauth2GrantBase.php, line 16
Class
- Oauth2GrantBase
- Base class for OAuth2 Grant plugins.
Namespace
Drupal\simple_oauth\PluginCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition);
}