$_binder
$_binder : \Horde_Injector_Binder
This is a binder that finds methods marked with @inject and calls them with their dependencies. It must be stacked on another binder that actually creates the instance.
$_binder : \Horde_Injector_Binder
$_dependencyFinder : \Horde_Injector_DependencyFinder
__construct(\Horde_Injector_Binder $binder, \Horde_Injector_DependencyFinder $finder = null)
Constructor.
\Horde_Injector_Binder | $binder | |
\Horde_Injector_DependencyFinder | $finder |
equals(\Horde_Injector_Binder $otherBinder) : boolean
Determine if one binder equals another binder
\Horde_Injector_Binder | $otherBinder |
Equality.
getBinder() : \Horde_Injector_Binder
create(\Horde_Injector $injector) : mixed
Create an instance.
\Horde_Injector | $injector | The injector should provide all required dependencies for creating the instance. |
The concrete instance.
_callSetters(array $setters, \Horde_Injector $injector, object $instance)
Call each ReflectionMethod in the $setters array, filling in its dependencies with the $injector.
array | $setters | Array of ReflectionMethods to call. |
\Horde_Injector | $injector | The injector to get dependencies from. |
object | $instance | The object to call setters on. |