Redirect
class Redirect implements ResponseSenderInterface
Redirect response.
Constants
MULTIPLE_CHOICES |
Multiple choices status code. |
MOVED_PERMANENTLY |
Moved permanently status code. |
FOUND |
Found status code. |
SEE_OTHER |
See other status code. |
NOT_MODIFIED |
Not modified status code. |
USE_PROXY |
Use proxy status code. |
TEMPORARY_REDIRECT |
Temporary redirect status code. |
PERMANENT_REDIRECT |
Permanent redirect status code. |
SUPPORTED_STATUS_CODES |
Supported redirect types. |
Properties
protected string | $location | Location. | |
protected int | $statusCode | Status code. |
Methods
Constructor.
Sets the HTTP status code to 301.
Sets the HTTP status code to 307.
Sets the HTTP status code to 308.
Returns the HTTP status code.
Details
at line 120
__construct(string $location, int $statusCode = self::FOUND)
Constructor.
at line 133
Redirect
setStatus(int $statusCode)
Sets the HTTP status code.
at line 151
Redirect
multipleChoices()
deprecated
deprecated
Sets the HTTP status code to 300.
at line 163
Redirect
movedPermanently()
Sets the HTTP status code to 301.
at line 175
Redirect
found()
Sets the HTTP status code to 302.
at line 187
Redirect
seeOther()
Sets the HTTP status code to 303.
at line 200
Redirect
notModified()
deprecated
deprecated
Sets the HTTP status code to 304.
at line 213
Redirect
useProxy()
deprecated
deprecated
Sets the HTTP status code to 305.
at line 225
Redirect
temporaryRedirect()
Sets the HTTP status code to 307.
at line 237
Redirect
permanentRedirect()
Sets the HTTP status code to 308.
at line 249
int
getStatus()
Returns the HTTP status code.