Jackalope\Transport\DoctrineDBAL\Client::assertLoggedIn PHP Method

assertLoggedIn() protected method

Ensure that we are currently logged in, executing the login in case we did lazy login.
protected assertLoggedIn ( )
    protected function assertLoggedIn()
    {
        if (!$this->loggedIn) {
            if (!$this->checkLoginOnServer && $this->workspaceName) {
                $this->checkLoginOnServer = true;
                if ($this->login($this->credentials, $this->workspaceName)) {
                    return;
                }
            }
            throw new RepositoryException('You need to be logged in for this operation');
        }
    }