Final Class Yiisoft\Auth\Debug\AuthenticationMethodInterfaceProxy
| Inheritance | Yiisoft\Auth\Debug\AuthenticationMethodInterfaceProxy |
|---|---|
| Implements | Yiisoft\Auth\AuthenticationMethodInterface |
Public Methods
Method Details
| 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)
{
}
| 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;
}
| 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);
}
Signup or Login in order to comment.