pimcore-i18n
pimcore-i18n copied to clipboard
Dynamic Symfony Route Prefixes
Q | A |
---|---|
Bug report? | no |
Feature request? | no |
BC Break report? | no |
RFC? | no |
In the following case, how would you define a dynamic path
prefix instead of matching_route_key
? Would it even be possible?
/**
* @Route("{path}/{title}~pr{object}", name="project-detail", defaults={"path"=""}, requirements={"path"=".*?", "title"="[\w-]+", "object"="\d+"})
* @Template()
*
* @param Request $request
*
* @return array
*/
public function detailAction(Request $request)