src/Adapter/BrowserSessionAdapter.php
public function terminate(AuthenticationResultInterface $authenticated_with)
    {
        if (!$authenticated_with instanceof SessionInterface) {
            throw new InvalidArgumentException('Instance is not a browser session');
        }

        $this->session_repository->terminateSession($authenticated_with);

        return new DeauthenticationTransport($this);
    }
public function terminate(AuthenticationResultInterface $authenticated_with)
    {
        if (!$authenticated_with instanceof SessionInterface) {
            throw new InvalidArgumentException('Instance is not a browser session');
        }

        $this->session_repository->terminateSession($authenticated_with);

        return new DeauthenticationTransport($this);
    }
{@inheritdoc}