Skip to content

Using ZF3 prototypes for hydrators and input filters #166

@bakura10

Description

@bakura10

Hi,

As you may know I've been refactored hydrators as a ZF3 prototype (see here: https://github.com/zf-fr/hydrator) and I've also refactored input filter (still need to move it into its own repository until it is in ZF3). They both offer a lot of performance boost and more flexibility.

I'm thinking about using them in ZfrRest, but I'd like to know about you. What I want is to actually not breaking whole apps. So my idea is to register them under different key in the service manager: most likely "Hydrator\HydratorPluginManager" and "InputFilter\InputFilterPluginManager". This will not conflict the "HydratorManager" and "InputFilterPluginManager" of ZF2.

The other problems is that the keys "hydrators" and "input_filters" are (logically) taken by ZF2. I suggest having "zfr_hydrators" and "zfr_input_filters" key.

I'm also thinking about moving ZfrRest to PHP 5.5 too.

Do you think it is a good idea, or would you guys prefer that we stick to ZF2 components (for hydrators I think it's not a big problem, for input filters a bit more). My point is that if you're using ZfrRest, you likely have a REST application and Doctrine 2, so problems related to Zend\Form and Zend\Db using ZF2 hydrators and/or input filter is not that relevant.

ping @Ocramius @mac_nibblet @danizord

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions