Class Horde_Injector_Binder_Factory
A binder object for binding an interface to a factory class and method.
An interface may be bound to a factory class. That factory class must provide a method or methods that accept a Horde_Injector, and return an object that satisfies the instance requirement. For example:
class MyFactory { ... public function create(Horde_Injector $injector) { return new MyClass($injector->getInstance('Collaborator'), new MyOtherClass(17)); } ... }
- Horde_Injector_Binder_Factory implements Horde_Injector_Binder
Package: Injector
Category: Horde
Author: Bob Mckee bmckee@bywires.com
Author: James Pepin james@jamespepin.com
Located at Horde/Injector/Binder/Factory.php
Category: Horde
Author: Bob Mckee bmckee@bywires.com
Author: James Pepin james@jamespepin.com
Located at Horde/Injector/Binder/Factory.php
public
|
#
__construct( string $factory, string $method )
Create a new Horde_Injector_Binder_Factory instance. |
public
boolean
|
|
public
string
|
|
public
string
|
|
public
TODO
|