LocalAwareRedirectResponseTrait
trait LocalAwareRedirectResponseTrait (View source)
Provides a trait which ensures that a URL is safe to redirect to.
Properties
| protected RequestContext | $requestContext | The request context. |
Methods
bool
isLocal(string $url)
Determines whether a path is local.
getRequestContext()
Returns the request context.
$this
Details
protected bool
isLocal(string $url)
Determines whether a path is local.
protected RequestContext
getRequestContext()
Returns the request context.
$this
setRequestContext(RequestContext $request_context)
Sets the request context.