You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.
The registration service is tied to a form. I think it's not responsability of the service to do that. The RegistrationService should only receive data considered as valid. When using REST we mostly don't use form but only input filter.
Furthermore, because the form is in the registration form itself, there is no way to retrieve it to show errors.
The problem with forms is that forms imply a lot more things behind them - they dictate the structure of the output and such, while a simpler JSON/XML REST api is just input-filter | hydrator
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Here: https://github.com/Bacon/BaconUser/blob/master/src/BaconUser/Service/RegistrationService.php#L27
The registration service is tied to a form. I think it's not responsability of the service to do that. The RegistrationService should only receive data considered as valid. When using REST we mostly don't use form but only input filter.
Furthermore, because the form is in the registration form itself, there is no way to retrieve it to show errors.
What do oyu think @Ocramius?
The text was updated successfully, but these errors were encountered: