WebRedirect
class WebRedirect extends AbstractEntryPoint (View source)
An authentication entry point, that redirects to another webpage.
Properties
protected array | $options | The configurations options |
from AbstractEntryPoint |
protected UriBuilder | $uriBuilder | ||
protected BaseUriProvider | $baseUriProvider |
Methods
ResponseInterface
startAuthentication(ServerRequestInterface $request, ResponseInterface $response)
Starts the authentication: Redirect to login page
string
generateUriFromRouteValues(array $routeValues, ServerRequestInterface $request)
No description
mixed
extractRouteValue(array $routeValues, string $key)
Returns the entry $key from the array $routeValues removing the original array item.
Details
void
setOptions(array $options)
Sets the options array
array
getOptions()
Returns the options array
ResponseInterface
startAuthentication(ServerRequestInterface $request, ResponseInterface $response)
Starts the authentication: Redirect to login page
protected string
generateUriFromRouteValues(array $routeValues, ServerRequestInterface $request)
No description
protected mixed
extractRouteValue(array $routeValues, string $key)
Returns the entry $key from the array $routeValues removing the original array item.
If $key does not exist, NULL is returned.