Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create form class from service container #145

Open
padalec opened this issue Apr 16, 2017 · 2 comments
Open

Create form class from service container #145

padalec opened this issue Apr 16, 2017 · 2 comments
Labels

Comments

@padalec
Copy link

padalec commented Apr 16, 2017

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

@garak
Copy link
Member

garak commented Apr 16, 2017

What's @form.type.architect?

@garak garak added the question label Apr 16, 2017
@padalec
Copy link
Author

padalec commented Apr 16, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants