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

Class 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 conrete classes should work all the time so long as you constructor parameters are typed.

Horde_Injector_TopLevel implements Horde_Injector_Scope
Package: Injector
Category: Horde
Author: Bob Mckee bmckee@bywires.com
Author: James Pepin james@jamespepin.com
Located at Horde/Injector/TopLevel.php
Methods summary
public Horde_Injector_Binder_ImplementationWithSetters
# getBinder( string $interface )

Get an Implementation Binder that maps the $interface to itself

Get an Implementation Binder that maps the $interface to itself

Parameters

$interface
<p>The interface to retrieve binding information for.</p>

Returns

Horde_Injector_Binder_ImplementationWithSetters

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

Implementation of

Horde_Injector_Scope::getBinder()
public null
# getInstance( string $interface )

Always return null. Object doesn't keep instance references

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

$interface
The interface in question

Returns

null

Implementation of

Horde_Injector_Scope::getInstance()
API documentation generated by ApiGen