\Horde_Injector_Scope

Interface for injector scopes

Injectors implement a Chain of Responsibility pattern. This is the required interface for injectors to pass on responsibility to parent objects in the chain.

Summary

Methods
Constants
getBinder()
getInstance()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getBinder()

getBinder(string  $interface) : \Horde_Injector_Binder|null

Returns the Horde_Injector_Binder object mapped to the request interface if such a mapping exists

Parameters

string $interface

Interface name of object whose binding if being retrieved.

Returns

\Horde_Injector_Binder|null

getInstance()

getInstance(string  $interface) : object

Returns instance of requested object if proper configuration has been provided.

Parameters

string $interface

Interface name of object which is being requested.

Returns

object