zendframework/zf2 — pull request #3242 by Squazic (2012-12-17 23:42:08+00:00)
Title: Allow more intuitive config of multiple domains

Currently, the Zend Ldap component can connect to multiple domains, as specified in the [docs][1]. However, it is left to the wrapping code to loop through the list of domains. I propose allowing the `Ldap` class to be constructed with an array of domains instead. Each of these domains would have the same options that `Ldap` uses now, but `Ldap` would do the looping internally, providing built-in failover and allowing more intuitive config files. I made sure not to break BC for the many cases when there is just one domain.

[1]: http://framework.zend.com/manual/2.0/en/modules/zend.ldap.introduction.html