Thruway\Authentication\AuthenticationManager::onSessionStart PHP Метод

onSessionStart() публичный Метод

Handles session started
public onSessionStart ( ClientSession $session, Thruway\Transport\TransportProviderInterface $transport )
$session Thruway\ClientSession
$transport Thruway\Transport\TransportProviderInterface
    public function onSessionStart($session, $transport)
    {
        $session->register('thruway.auth.registermethod', [$this, 'registerAuthMethod'], ['disclose_caller' => true])->then(function () {
            $this->setReady(true);
        }, function () {
            $this->setReady(false);
            Logger::error($this, "registration of registerAuthMethod failed.");
        });
    }