Overview

Packages

  • Injector

Classes

  • Horde_Injector
  • Horde_Injector_Binder_AnnotatedSetters
  • Horde_Injector_Binder_Closure
  • Horde_Injector_Binder_Factory
  • Horde_Injector_Binder_Implementation
  • Horde_Injector_DependencyFinder
  • Horde_Injector_Exception
  • Horde_Injector_TopLevel

Interfaces

  • Horde_Injector_Binder
  • Horde_Injector_Scope
  • Overview
  • Package
  • Class
  • Tree

Interface 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.

Direct known implementers

Horde_Injector, Horde_Injector_TopLevel
Package: Injector
Category: Horde
Located at Horde/Injector/Scope.php
Methods summary
public Horde_Injector_Binder|null
# getBinder( string $interface )

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

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

Parameters

$interface
<p>Interface name of object whose binding if being retrieved.</p>

Returns

Horde_Injector_Binder|null
public Object
# getInstance( string $interface )

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

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

Parameters

$interface
<p>Interface name of object which is being requested.</p>

Returns

Object
API documentation generated by ApiGen