Class Horde_Injector_Binder_Closure
A binder object for binding an interface to a closure.
An interface may be bound to a closure. That closure must accept a Horde_Injector and return an object that satisfies the instance requirement. For example:
$injector->bindClosure('database', function($injector) { return new my_mysql(); });
- Horde_Injector_Binder_Closure implements Horde_Injector_Binder
Package: Injector
Category: Horde
Author: Bob Mckee bmckee@bywires.com
Author: James Pepin james@jamespepin.com
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Injector/Binder/Closure.php
Category: Horde
Author: Bob Mckee bmckee@bywires.com
Author: James Pepin james@jamespepin.com
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Injector/Binder/Closure.php
public
|
|
public
boolean
|
|
public
callable
|
|
public
TODO
|