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
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
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