guzzle/guzzle — pull request #132 by jeremeamia (2012-09-06 19:10:39+00:00)
Title: Improved the iterator factory

Improved the iterator factory so that it can look for iterators in multiple namespaces:

// Different options for instantiation
$factory1 = new ResourceIteratorClassFactory();
$factory2 = new ResourceIteratorClassFactory('My\Namespace');
$factory3 = new ResourceIteratorClassFactory(array(
'My\Namespace',
'My\Other\Namespace'
));

// Can now register namespaces on the object later
$factory1->registerNamespace('My\Friends\Namespace');

The factory will look in the most recently added namespace first when attempting to instantiate an iterator.