PHP Interface Horde_Injector_Scope, horde

Injectors implement a Chain of Responsibility pattern. This is the required interface for injectors to pass on responsibility to parent objects in the chain.
Afficher le fichier Open project: horde/horde Interface Usage Examples

Méthodes publiques

Méthode Description
getBinder ( string $interface ) : Horde_Injector_Binder | null Returns the Horde_Injector_Binder object mapped to the request interface if such a mapping exists
getInstance ( string $interface ) : object Returns instance of requested object if proper configuration has been provided.

Method Details

getBinder() public méthode

Returns the Horde_Injector_Binder object mapped to the request interface if such a mapping exists
public getBinder ( string $interface ) : Horde_Injector_Binder | null
$interface string Interface name of object whose binding if being retrieved.
Résultat Horde_Injector_Binder | null

getInstance() public méthode

Returns instance of requested object if proper configuration has been provided.
public getInstance ( string $interface ) : object
$interface string Interface name of object which is being requested.
Résultat object