Constructor
public __construct ( array $authRealms, React\EventLoop\LoopInterface $loop = null ) | ||
$authRealms | array | |
$loop | React\EventLoop\LoopInterface |
/** * Constructor * * @param array $authRealms * @param \React\Http\Server $http * @param string $clientId * @param string $clientSecret */ public function __construct($authRealms, $http, $clientId, $clientSecret) { $this->clientId = $clientId; $this->clientSecret = $clientSecret; parent::__construct($authRealms); //Register Http request event $http->on('request', [$this, "onHttpRequest"]); }
/** * Constructor * * @param array $authRealms * @param \React\EventLoop\LoopInterface $loop */ public function __construct(Container $application, array $authRealms) { $this->application = $application; /* * Set authorization the realm. Defaults to "thruway.auth" * * This realm is only used between the Authentication Provider Client and the Authentication Manager Client on the server. * */ parent::__construct($authRealms); }
function __construct(ConfigFactoryInterface $configFactory, UserAuthInterface $user_auth, FloodInterface $flood, EntityManagerInterface $entityManager) { $this->configFactory = $configFactory; $this->userAuth = $user_auth; $this->flood = $flood; $this->entityManager = $entityManager; $this->thruwaySettings = \Drupal::config('thruway.settings'); $options = $this->thruwaySettings->get('options'); $this->authKey = $options["auth_key"]; $loop = \Drupal::service('thruway.loop'); parent::__construct([$options["realm"]], $loop); $this->methodName = "drupal.{$options["realm"]}"; }
function __construct(array $authRealms, $clientId, $clientSecret) { $this->clientId = $clientId; $this->clientSecret = $clientSecret; parent::__construct($authRealms); }
/** * Constructor * * @param array $authRealms * @param string $appId * @param string $appSecret */ public function __construct(array $authRealms, $appId, $appSecret) { $this->appId = $appId; $this->appSecret = $appSecret; parent::__construct($authRealms); }