src/Zicht/Bundle/FrameworkExtraBundle/Helper/EmbedHelper.php
protected function getParamFromRequest($name)
    {
        if (null !== $value = $this->requestStack->getCurrentRequest()->get($name)) {
            return $value;
        }

        if ((null !== $request = $this->requestStack->getParentRequest()) && null !== $value = $request->get($name)) {
            return $value;
        }

        if ((null !== $request = $this->requestStack->getMasterRequest()) && null !== $value = $request->get($name)) {
            return $value;
        }

        return null;
    }
protected function getParamFromRequest($name)
    {
        if (null !== $value = $this->requestStack->getCurrentRequest()->get($name)) {
            return $value;
        }

        if ((null !== $request = $this->requestStack->getParentRequest()) && null !== $value = $request->get($name)) {
            return $value;
        }

        if ((null !== $request = $this->requestStack->getMasterRequest()) && null !== $value = $request->get($name)) {
            return $value;
        }

        return null;
    }
protected function getParamFromRequest ( $ name ) { if ( null !== $ value = $ this -> requestStack -> getCurrentRequest ( ) -> get ( $ name ) ) { return $ value ; } if ( ( null !== $ request = $ this -> requestStack -> getParentRequest ( ) ) && null !== $ value = $ request -> get ( $ name ) ) { return $ value ; } if ( ( null !== $ request = $ this -> requestStack -> getMasterRequest ( ) ) && null !== $ value = $ request -> get ( $ name ) ) { return $ value ; } return null ; }
search for a param value in the request stack, start in current
and bubble up till master request when not found.

@param string $name
@return mixed|null
search for a param value in the request stack start in current and bubble up till master request when not found .