Final Class Yiisoft\Auth\Debug\AuthenticationMethodInterfaceProxy
| Inheritance | Yiisoft\Auth\Debug\AuthenticationMethodInterfaceProxy |
|---|---|
| Implements | Yiisoft\Auth\AuthenticationMethodInterface |
Public Methods
Method Details
| public __construct( Yiisoft\Auth\AuthenticationMethodInterface $decorated, Yiisoft\Auth\Debug\IdentityCollector $collector ): mixed | ||
| $decorated | Yiisoft\Auth\AuthenticationMethodInterface | |
| $collector | Yiisoft\Auth\Debug\IdentityCollector | |
public function __construct(private readonly AuthenticationMethodInterface $decorated, private readonly IdentityCollector $collector) {}
| public authenticate( \Psr\Http\Message\ServerRequestInterface $request ): Yiisoft\Auth\IdentityInterface|null | ||
| $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 challenge( \Psr\Http\Message\ResponseInterface $response ): \Psr\Http\Message\ResponseInterface | ||
| $response | \Psr\Http\Message\ResponseInterface | |
public function challenge(ResponseInterface $response): ResponseInterface
{
return $this->decorated->challenge($response);
}
Signup or Login in order to comment.