W3cubDocs

/Symfony 4.1

RequestContextProvider

class RequestContextProvider implements ContextProviderInterface

Tries to provide context from a request.

Methods

__construct(RequestStack $requestStack)
array|null getContext()

Details

__construct(RequestStack $requestStack)

Parameters

RequestStack $requestStack

array|null getContext()

Return Value

array|null Context data or null if unable to provide any context