0 follower

Final Class Yiisoft\Auth\Debug\AuthenticationMethodInterfaceProxy

InheritanceYiisoft\Auth\Debug\AuthenticationMethodInterfaceProxy
ImplementsYiisoft\Auth\AuthenticationMethodInterface

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( Yiisoft\Auth\AuthenticationMethodInterface $decorated, Yiisoft\Auth\Debug\IdentityCollector $collector )
$decorated Yiisoft\Auth\AuthenticationMethodInterface
$collector Yiisoft\Auth\Debug\IdentityCollector

                public function __construct(private AuthenticationMethodInterface $decorated, private IdentityCollector $collector)
{
}

            
authenticate() public method

public Yiisoft\Auth\IdentityInterface|null authenticate ( \Psr\Http\Message\ServerRequestInterface $request )
$request \Psr\Http\Message\ServerRequestInterface

                public function authenticate(ServerRequestInterface $request): ?IdentityInterface
{
    $identity = null;
    try {
        $identity = $this->decorated->authenticate($request);
    } finally {
        $this->collector->collect($identity);
    }
    return $identity;
}

            
challenge() public method

public \Psr\Http\Message\ResponseInterface challenge ( \Psr\Http\Message\ResponseInterface $response )
$response \Psr\Http\Message\ResponseInterface

                public function challenge(ResponseInterface $response): ResponseInterface
{
    return $this->decorated->challenge($response);
}