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.


--
Thomas Rabaix
thomas.rab...@gmail.com




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 Fri, Nov 25, 2011 at 5:04 PM, Lukas Kahwe Smith <m...@pooteeweet.org>wrote:
> 
>> Hi,
>> 
>> Another topic is that right now the Validation layer lacks filtering:
>> https://github.com/rdohms/DMS-Filter
>> 
>> The idea being that before you validate, one might want to run some
>> filter/sanitization rules.
>> 
>> 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
>> 
> 
> -- 
> 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

-- 
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