使用Symfony表达式填充默认路由参数

时间:2015-12-09 18:23:45

标签: symfony

我有这样的路线:

Execution failed due to configuration error: 
No match for output mapping and no default output mapping configured. 

我想要的是,默认情况下默认填充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\-_]+?" 以防止在生成路线时影响它,如何?

0 个答案:

没有答案