[dev] [commits] Horde branch master updated. 104e3198ce8b82e1a469dce43420d2d6fa7e2a7d

Chuck Hagenbuch chuck at horde.org
Sun May 30 01:02:37 UTC 2010


Quoting Michael M Slusarz <slusarz at horde.org>:

> I still have concerns over this type of binder usage, however (an  
> example I found in content/):
>
> public function __construct(Horde_Db_Adapter_Base $db, ...)
>
> This usage assumes that a horde installation uses a single database.  
>  That is an incorrect assumption though.

No, it doesn't. It states that the class in question needs a database  
connection. Which one is filled in can be determined by a factory, a  
special binder, by using child scopes in the injector... lots of ways.

-chuck


More information about the dev mailing list