RequestValueResolver

class RequestValueResolver implements ArgumentValueResolverInterface Yields the same instance as the request object passed along. 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) Whethe

RequestStackContext

class RequestStackContext implements ContextInterface Uses a RequestStack to populate the context. Methods __construct(RequestStack $requestStack) string getBasePath() Gets the base path. bool isSecure() Checks whether the request is secure or not. Details __construct(RequestStack $requestStack) Parameters RequestStack $requestStack string getBasePath() Gets the base path. Return Value st

RequestStack::push()

push(Request $request) Pushes a Request on the stack. This method should generally not be called directly as the stack management should be taken care of by the application itself. Parameters Request $request

RequestStackContext::getBasePath()

string getBasePath() Gets the base path. Return Value string The base path

RequestStackContext::isSecure()

bool isSecure() Checks whether the request is secure or not. Return Value bool true if the request is secure, false otherwise

RequestStack

class RequestStack Request stack that controls the lifecycle of requests. Methods push(Request $request) Pushes a Request on the stack. Request|null pop() Pops the current request from the stack. Request|null getCurrentRequest() Request|null getMasterRequest() Gets the master Request. Request|null getParentRequest() Returns the parent request of the current. Details push(Request $request) Pushes a Request on the stack. Thi

RequestStack::getCurrentRequest()

Request|null getCurrentRequest() Return Value Request|null

RequestStack::getParentRequest()

Request|null getParentRequest() Returns the parent request of the current. Be warned that making your code aware of the parent request might make it un-compatible with other features of your framework like ESI support. If current Request is the master request, it returns null. Return Value Request|null

RequestStack::pop()

Request|null pop() Pops the current request from the stack. This operation lets the current request go out of scope. This method should generally not be called directly as the stack management should be taken care of by the application itself. Return Value Request|null

RequestStack::getMasterRequest()

Request|null getMasterRequest() Gets the master Request. Be warned that making your code aware of the master request might make it un-compatible with other features of your framework like ESI support. Return Value Request|null