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

Implement some sort of native form events #287

Closed
joeholdcroft opened this issue Jan 3, 2014 · 1 comment
Closed

Implement some sort of native form events #287

joeholdcroft opened this issue Jan 3, 2014 · 1 comment

Comments

@joeholdcroft
Copy link
Contributor

I often need a way to fire an event when a form is built (so listeners can add fields to it) and also when it is being processed (after passing validation) to do stuff with the data.

Can we support this natively within the form component? Symfony allows it like this but I dunno if that will work perfectly for us as the listeners are always added inside of buildForm() and we'd want to be able to do it from within bootstraps.

@joeholdcroft
Copy link
Contributor Author

Closing this issue as we switched to Symfony form straight up and we can handle this with Symfony form now.

With regard to my concern about listeners being added with the form class, this won't be an issue so long as the form instances are in the service container. They can have listeners added publicly.

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

No branches or pull requests

1 participant