Constructor
public __construct ( string $realm, React\EventLoop\LoopInterface $loop = null ) | ||
$realm | string | |
$loop | React\EventLoop\LoopInterface |
function __construct($realm = null) { if ($realm) { $this->realm = $realm; } parent::__construct($this->realm); }
/** * @param string $realm * @param null $loop */ function __construct($realm, $loop = null) { parent::__construct($realm, $loop); $this->setReady(false); $this->rules = []; $this->flushAuthorizationRules(); }
/** * TODO doc block */ public function __construct() { Logger::set(new NullLogger()); parent::__construct('realm1'); $ip = Configure::read('Websockets.ip'); $port = Configure::read('Websockets.port'); $this->addTransportProvider(new PawlTransportProvider("ws://" . $ip . ":" . $port . "/")); }
/** * Constructor * * @param array $authRealms * @param \React\EventLoop\LoopInterface $loop */ public function __construct(array $authRealms, LoopInterface $loop = null) { $this->authRealms = $authRealms; /* * 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('thruway.auth', $loop); }
public function __construct($realmName, $loop = null, $bindAddress = '127.0.0.1', $port = 8181) { if ($loop === null) { $loop = Factory::create(); } $this->bindAddress = $bindAddress; $this->port = $port; $this->realmName = $realmName; $this->socket = new Server($loop); $this->http = new \React\Http\Server($this->socket); $this->http->on('request', [$this, 'handleRequest']); $this->socket->listen($this->port, $bindAddress); parent::__construct($realmName, $loop); }
/** * Constructor * * @param string $realm * @param \React\EventLoop\LoopInterface $loop * @param \React\Promise\Promise $thePromise */ public function __construct($realm, $loop, $thePromise) { parent::__construct($realm, $loop); $this->thePromise = $thePromise; }
/** * Constructor. * * @param string $realm * @param array $providers */ public function __construct($realm, array $providers) { parent::__construct($realm); $this->providers = $providers; }
/** * Constructor * * @param string $realm * @param \React\EventLoop\LoopInterface $loop * @param int $number */ public function __construct($realm, $loop, $number) { parent::__construct($realm, $loop); $this->number = $number; $this->registeredDeferred = new \React\Promise\Deferred(); }
/** * Constructor */ public function __construct() { parent::__construct("manager"); $this->callables = []; $this->setLogger(new NullLogger()); }
/** * Constructor */ public function __construct() { parent::__construct('thruway.auth'); $this->authMethods = []; $this->ready = false; }
/** * Constructor. */ public function __construct(Application $app, $realm = 'realm1') { $this->app = $app; parent::__construct($realm); }
function __construct($realm, $loop, ContainerInterface $container) { $this->container = $container; parent::__construct($realm, $loop); }
/** * @param string $token * @param \React\EventLoop\LoopInterface $realm * @param null $loop */ function __construct($token, $realm, $loop = null) { $this->token = $token; parent::__construct($realm, $loop); }