Hi,

I guess it was kind of stupid to just throw this topic into the week 48 IRC 
meeting thread.

On Nov 26, 2011, at 6:24 PM, Benjamin Eberlei wrote:

> The problem with filtering in the current context is that it is done by the
> Form component internally in the event listeners
> (transform/reverseTransform,onBind)
> 
> I don't see how we can find an API that does both filtering inside the form
> and standalone.


On Nov 28, 2011, at 10:05 , Thomas Rabaix wrote:

> This can be done by creating a Form Type which extends the 'field' type and 
> add custom transformer (which will be a proxy service to the filtering 
> service).
> 
> However I don't see the point of the filtering/sanitization, as the 
> transformer already alter the value depends on the provided value and more 
> transformer can be added at runtime.


In general I would want this not to be part of Form, but to be more like the 
Validation. Aka something that I can use standalone which is integrated with 
the Form layer (filtering/sanitization should happen before validation though). 
It should likely be based on ext/filter and be configured much the same way as 
Validation.

Again here is a link to the DMS Filter code, which doesnt cover a lot yet and 
currently does not use ext/filter:
https://github.com/rdohms/DMS-Filter

regards,
Lukas Kahwe Smith
m...@pooteeweet.org



-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to