src/AuthenticationResult/Transport/Transport.php
public function applyTo(ServerRequestInterface $request, ResponseInterface $response)
    {
        if ($this->isEmpty()) {
            throw new LogicException('Empty authentication transport cannot be applied');
        }

        if ($this->isApplied()) {
            throw new LogicException('Authentication transport already applied');
        }

        $result = $this->getAdapter()->applyTo($request, $response, $this);
        $this->is_applied = true;

        return $result;
    }
public function applyTo(ServerRequestInterface $request, ResponseInterface $response)
    {
        if ($this->isEmpty()) {
            throw new LogicException('Empty authentication transport cannot be applied');
        }

        if ($this->isApplied()) {
            throw new LogicException('Authentication transport already applied');
        }

        $result = $this->getAdapter()->applyTo($request, $response, $this);
        $this->is_applied = true;

        return $result;
    }
{@inheritdoc}