问题
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