RequestContext::fromRequest()

RequestContext fromRequest(Request $request) Updates the RequestContext information based on a HttpFoundation Request. Parameters Request $request A Request instance Return Value RequestContext The current instance, implementing a fluent interface

RequestContext::getHttpPort()

int getHttpPort() Gets the HTTP port. Return Value int The HTTP port

RequestContext::getBaseUrl()

string getBaseUrl() Gets the base URL. Return Value string The base URL

RequestContext::getHost()

string getHost() Gets the HTTP host. The host is always lowercased because it must be treated case-insensitive. Return Value string The HTTP host

RequestContext

class RequestContext Holds information about the current request. This class implements a fluent interface. Methods __construct(string $baseUrl = '', string $method = 'GET', string $host = 'localhost', string $scheme = 'http', int $httpPort = 80, int $httpsPort = 443, string $path = '/', string $queryString = '') Constructor. RequestContext fromRequest(Request $request) Updates the RequestContext information based on a HttpFoundation Request. string getBaseUrl() Gets the base U

RequestAttributeValueResolver

class RequestAttributeValueResolver implements ArgumentValueResolverInterface Yields a non-variadic argument's value from the request attributes. Methods bool supports(Request $request, ArgumentMetadata $argument) Whether this resolver can resolve the value for the given ArgumentMetadata. Generator resolve(Request $request, ArgumentMetadata $argument) Returns the possible value(s). Details bool supports(Request $request, ArgumentMetadata $argument)

RequestAttributeValueResolver::resolve()

Generator resolve(Request $request, ArgumentMetadata $argument) Returns the possible value(s). Parameters Request $request ArgumentMetadata $argument Return Value Generator

RequestAttributeValueResolver::supports()

bool supports(Request $request, ArgumentMetadata $argument) Whether this resolver can resolve the value for the given ArgumentMetadata. Parameters Request $request ArgumentMetadata $argument Return Value bool

Request::setTrustedHosts()

static setTrustedHosts(array $hostPatterns) Sets a list of trusted host patterns. You should only list the hosts you manage using regexs. Parameters array $hostPatterns A list of trusted host patterns

Request::setTrustedProxies()

static setTrustedProxies(array $proxies) Sets a list of trusted proxies. You should only list the reverse proxies that you manage directly. Parameters array $proxies A list of trusted proxies