Php 全局更改Symfony 2应用程序中每个路由的RequestFormat
是否有方法更改应用程序中所有路线的默认Php 全局更改Symfony 2应用程序中每个路由的RequestFormat,php,symfony,format,routes,Php,Symfony,Format,Routes,是否有方法更改应用程序中所有路线的默认htmlRequestFormat 这可能会起作用,但我需要将其设置为每个单独的路线: article_show: pattern: /articles/{culture}/{year}/{title}.{_format} defaults: { _controller: AcmeDemoBundle:Article:show, _format: %global_format% } 这可能对你有帮助
html
RequestFormat
这可能会起作用,但我需要将其设置为每个单独的路线:
article_show:
pattern: /articles/{culture}/{year}/{title}.{_format}
defaults: { _controller: AcmeDemoBundle:Article:show, _format: %global_format% }
这可能对你有帮助