src/Helper/PageHelper.php
public function matchContentRouteRequest(Request $request)
    {
        $requestParams = $this->router->matchRequest($request);

        if (is_array($requestParams) && !empty($requestParams)) {
            $request->attributes->add($requestParams);

            unset($requestParams['_route']);
            unset($requestParams['_controller']);
            $request->attributes->set('_route_params', $requestParams);

            $configuration = $request->attributes->get('_template');
            $request->attributes->set('_template', $configuration->getTemplate());
            $request->attributes->set('_template_vars', $configuration->getVars());
            $request->attributes->set('_template_streamable', $configuration->isStreamable());
        }

        return $request;
    }
public function matchContentRouteRequest(Request $request)
    {
        $requestParams = $this->router->matchRequest($request);

        if (is_array($requestParams) && !empty($requestParams)) {
            $request->attributes->add($requestParams);

            unset($requestParams['_route']);
            unset($requestParams['_controller']);
            $request->attributes->set('_route_params', $requestParams);

            $configuration = $request->attributes->get('_template');
            $request->attributes->set('_template', $configuration->getTemplate());
            $request->attributes->set('_template_vars', $configuration->getVars());
            $request->attributes->set('_template_streamable', $configuration->isStreamable());
        }

        return $request;
    }
public function matchContentRouteRequest ( Request $ request ) { $ requestParams = $ this -> router -> matchRequest ( $ request ) ; if ( is_array ( $ requestParams ) && ! empty ( $ requestParams ) ) { $ request -> attributes -> add ( $ requestParams ) ; unset ( $ requestParams [ '_route' ] ) ; unset ( $ requestParams [ '_controller' ] ) ; $ request -> attributes -> set ( '_route_params' , $ requestParams ) ; $ configuration = $ request -> attributes -> get ( '_template' ) ; $ request -> attributes -> set ( '_template' , $ configuration -> getTemplate ( ) ) ; $ request -> attributes -> set ( '_template_vars' , $ configuration -> getVars ( ) ) ; $ request -> attributes -> set ( '_template_streamable' , $ configuration -> isStreamable ( ) ) ; } return $ request ; }
Fills the request object with the content route parameters if found.

@param Request $request

@return Request
Fills the request object with the content route parameters if found .