Re: A new php Validator and Filter interface for the SPL
| From: | Lars Strojny | Date: | Fri, 31 Aug 2012 15:55:16 +0000 |
| Subject: | Re: A new php Validator and Filter interface for the SPL | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62609@lists.php.net to get a copy of this message | ||
Hi Axel,
I think PHP core is just not the place for such standardization, as long as those interface do not
interact with the engine (as i.e. Traversable does). Different frameworks might or might not agree
on various interoperability standards and that’s fine. Having those interfaces in core would bind
the life- and deprecation cycles of interoperability agreements to the lifecycle of the language.
cu,
Lars
Am 31.08.2012 um 14:55 schrieb Axel Etcheverry <axel@etcheverry.biz>:
> Hi,
>
> Please take a look at https://github.com/php/php-src/pull/180
>
> This patch is designed to offer two new interfaces in the SPL to standardize filters and
> validators of frameworks (ZF, SF, etc ...).
>
> This allows the developer to use validators and filters of different sources in a same
> application.
>
> The tests are in the patch.
>
> Comments and feedback welcome.
>
> --
> Best regards,
> Axel Etcheverry
>
> Phone : +33 6 84 15 57 52
> Twitter : @euskadi31 (http://twitter.com/euskadi31)
> Home : http://www.axel-etcheverry.com
> (http://www.axel-etcheverry.com/)
> Audiofanzine : http://fr.audiofanzine.com
> (http://fr.audiofanzine.com/)
> Auto-broc : http://www.auto-broc.fr (http://www.auto-broc.fr/)
>
>
>