\Horde_Injector_TopLevel

Top level injector class for returning the default binding for an object

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.

Summary

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

Methods

getBinder()

getBinder(string  $interface) : \Horde_Injector_Binder_ImplementationWithSetters

Get an Implementation Binder that maps the $interface to itself.

Parameters

string $interface

The interface to retrieve binding information for.

Returns

\Horde_Injector_Binder_ImplementationWithSetters —

A new binding object that maps the interface to itself, with setter injection.

getInstance()

getInstance(string  $interface) : null

Always return null. Object doesn't keep instance references.

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.

Parameters

string $interface

The interface in question.

Returns

null