PUGXMultiUserBundle icon indicating copy to clipboard operation
PUGXMultiUserBundle copied to clipboard

Create form class from service container

Open padalec opened this issue 8 years ago • 2 comments

Hi there is the way to inject form type class from container? When I try to do this by: form: type: '@form.type.investor' I got error

UserDiscriminator, error getting form type : "@form.type.architect" not found

padalec avatar Apr 16 '17 16:04 padalec

What's @form.type.architect?

garak avatar Apr 16 '17 16:04 garak

It's my from type creating in service container: form.type.architect: class: TogeteeBundle\Form\RegistrationArchitectType arguments: [ '@router' ] tags: - { name: form.type }

padalec avatar Apr 16 '17 16:04 padalec