PHP Class Horde_Injector_TopLevel, horde
This class returns a Horde_Injector_Binder_Implementation with the
requested $interface mapped to itself. This is the default case, and for
concrete classes should work all the time so long as you constructor
parameters are typed.
Exibir arquivo
Open project: horde/horde
Public Methods
Method |
Description |
|
getBinder ( string $interface ) : Horde_Injector_Binder_ImplementationWithSetters |
Get an Implementation Binder that maps the $interface to itself. |
|
getInstance ( string $interface ) : null |
Always return null. Object doesn't keep instance references. |
|
Method Details
getBinder()
public method
Get an Implementation Binder that maps the $interface to itself.
public getBinder ( string $interface ) : Horde_Injector_Binder_ImplementationWithSetters |
$interface |
string |
The interface to retrieve binding information
for. |
return |
Horde_Injector_Binder_ImplementationWithSetters |
A new binding object that maps the interface to itself, with
setter injection. |
getInstance()
public method
Method is necessary because this object is the default parent Injector.
The child of this injector will ask it for instances in the case where
no bindings are set on the child. This should always return null.