class UnauthorizedHttpException
@author Ben Ramsey <ben@benramsey.com>
Hierarchy
- class \Symfony\Component\HttpKernel\Exception\HttpException extends \Symfony\Component\HttpKernel\Exception\RuntimeException implements \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
- class \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException extends \Symfony\Component\HttpKernel\Exception\HttpException
Expanded class hierarchy of UnauthorizedHttpException
2 files declare their use of UnauthorizedHttpException
- BasicAuth.php in core/
modules/ basic_auth/ src/ Authentication/ Provider/ BasicAuth.php - CacheableUnauthorizedHttpException.php in core/
lib/ Drupal/ Core/ Http/ Exception/ CacheableUnauthorizedHttpException.php
File
-
vendor/
symfony/ http-kernel/ Exception/ UnauthorizedHttpException.php, line 17
Namespace
Symfony\Component\HttpKernel\ExceptionView source
class UnauthorizedHttpException extends HttpException {
/**
* @param string $challenge WWW-Authenticate challenge string
*/
public function __construct(string $challenge, string $message = '', ?\Throwable $previous = null, int $code = 0, array $headers = []) {
$headers['WWW-Authenticate'] = $challenge;
parent::__construct(401, $message, $previous, $headers, $code);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
HttpException::fromStatusCode | public static | function | |||
HttpException::getHeaders | public | function | Returns response headers. | Overrides HttpExceptionInterface::getHeaders | |
HttpException::getStatusCode | public | function | Returns the status code. | Overrides HttpExceptionInterface::getStatusCode | |
HttpException::setHeaders | public | function | |||
UnauthorizedHttpException::__construct | public | function | Overrides HttpException::__construct | 1 |