PHP Класс 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.
Автор: Bob Mckee ([email protected])
Автор: James Pepin ([email protected])
Наследование: implements Horde_Injector_Scope
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

getBinder() публичный Метод

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.
Результат Horde_Injector_Binder_ImplementationWithSetters A new binding object that maps the interface to itself, with setter injection.

getInstance() публичный Метод

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.
public getInstance ( string $interface ) : null
$interface string The interface in question.
Результат null