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.
Afficher le fichier
Open project: horde/horde
Méthodes publiques
Méthode |
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 méthode
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. |
Résultat |
Horde_Injector_Binder_ImplementationWithSetters |
A new binding object that maps the interface to itself, with
setter injection. |
getInstance()
public méthode
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.