You are here

Oauth2GrantBase.php in Simple OAuth (OAuth2) & OpenID Connect 5.x

File

src/Plugin/Oauth2GrantBase.php
View source
<?php

namespace Drupal\simple_oauth\Plugin;

use Drupal\Component\Plugin\PluginBase;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Base class for OAuth2 Grant plugins.
 */
abstract class Oauth2GrantBase extends PluginBase implements Oauth2GrantInterface {

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition);
  }

}

Classes

Namesort descending Description
Oauth2GrantBase Base class for OAuth2 Grant plugins.