Symfony2 在表单类型扩展中获取请求 url [英] Symfony2 get request url in form type extension
本文介绍了Symfony2 在表单类型扩展中获取请求 url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在表单类型扩展中获取请求 URL?我想知道是什么调用了表单类型扩展.
Is it possible to fetch the request URL in form type extension? I want to find out what is calling the form type extension.
谢谢
何洁
推荐答案
因为你可以将类型扩展定义为服务,我认为你可以注入请求
As you can define from type extension as a service, i think you can inject the request
这篇关于Symfony2 在表单类型扩展中获取请求 url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文