This isn't "pure", but it still lets the DependencyFinder be injected, and it
also makes bindImplementation() work again without any other hacks or extra
arguments.
/**
* TODO
*/
- public function __construct($implementation, Horde_Injector_DependencyFinder $dependencyFinder)
+ public function __construct($implementation, Horde_Injector_DependencyFinder $dependencyFinder = null)
{
$this->_implementation = $implementation;
+
+ if (is_null($dependencyFinder)) {
+ $dependencyFinder = new Horde_Injector_DependencyFinder();
+ }
$this->_dependencyFinder = $dependencyFinder;
}