Matthimatiker / MolComponents

Library with use-at-will architecture that extends the functionality of Zend Framework 1. Main features: Improved bootstrapping with lazy loading of resources, declaration of request parameters as argument in controller actions, advanced form creation and validation, mail templates, lightweight controller testing.
Other
2 stars 0 forks source link

Object Builder should support multiple constraints #33

Closed Matthimatiker closed 11 years ago

Matthimatiker commented 12 years ago

It should be possible to pass multiple type constraints to the Object Builder (Mol_Util_ObjectBuilder). An instance should only be created if its class fulfills all of the given constraints.

Matthimatiker commented 11 years ago

Builder accepts and respects multiple type constraints now:

$builder = new Mol_Util_ObjectBuilder(array('Traversable', 'Countable'));