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
doc_Symfony
2016-10-28 06:29:53
Comments
Leave a Comment

Please login to continue.