class WithHttpStatus
Defines the HTTP status code applied to an exception.
@author Dejan Angelov <angelovdejan@protonmail.com>
Hierarchy
- class \Symfony\Component\HttpKernel\Attribute\WithHttpStatus
Expanded class hierarchy of WithHttpStatus
1 file declares its use of WithHttpStatus
- ErrorListener.php in vendor/
symfony/ http-kernel/ EventListener/ ErrorListener.php
File
-
vendor/
symfony/ http-kernel/ Attribute/ WithHttpStatus.php, line 19
Namespace
Symfony\Component\HttpKernel\AttributeView source
class WithHttpStatus {
/**
* @param int $statusCode The HTTP status code to use
* @param array<string, string> $headers The HTTP headers to add to the response
*/
public function __construct(int $statusCode, array $headers = []) {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
WithHttpStatus::__construct | public | function |