使用Symfony表达式填充默认管线参数
我有这样的路线:使用Symfony表达式填充默认管线参数,symfony,Symfony,我有这样的路线: os_user_security_check: pattern: /login_check host: "{subdomain}.%base_host%" defaults: _controller: FOSUserBundle:Security:check subdomain: "expr(request.get('subdomain'))" requirements: _method:
os_user_security_check:
pattern: /login_check
host: "{subdomain}.%base_host%"
defaults:
_controller: FOSUserBundle:Security:check
subdomain: "expr(request.get('subdomain'))"
requirements:
_method: POST
subdomain: "[a-z0-9\-_]+?"
我想要的是,默认情况下填充子域
,以防止在生成路由时影响它,如何