Symfony2 get request url in form type extension

十年热恋 提交于 2019-12-11 02:47:28

问题


Is it possible to fetch the request URL in form type extension? I want to find out what is calling the form type extension.

Thank you

Jake He


回答1:


As you can define from type extension as a service, i think you can inject the request



来源:https://stackoverflow.com/questions/44522444/symfony2-get-request-url-in-form-type-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!