[horde] Help needed

Ralf Lang lang at b1-systems.de
Wed Apr 11 11:58:31 UTC 2018



Am 11.04.2018 um 13:45 schrieb Mike Poznecki:
>
>
> On Wednesday, April 11, 2018, 6:31:03 AM CDT, Ralf Lang
> <lang at b1-systems.de> wrote:
>
>
>
> Am 11.04.2018 um 13:17 schrieb Mike Poznecki:
> > Hi, I have the following code in my new private function:
> > global $injector, $registry;
> > $sparams = $injector->getInstance('IMP_ Contacts')->
> getAddressbookSearchParams();
> >
> > Which I copied directly from another existing Horde page.  When I
> run it, I get:
> > PHP Fatal error: Call to a member function getInstance() on a non-object
> > I have tried many things but cannot get this to work. Can someone
> tell me what I am doing wrong?
>
>
> Does the app define a factory or binding for IMP_Contacts? Also, the
> copypaste looks like there is a space between IMP_ and Contacts.
>
> -- 
> Ralf Lang
> Linux Consultant / Developer
> Tel.: +49-170-6381563
> Mail: lang at b1-systems.de <mailto:lang at b1-systems.de>
> B1 Systems GmbH
> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
>
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
> <mailto:horde-unsubscribe at lists.horde.org>
>
>
> I am sure that Horde defines a factory or binding to IMP_Contacts.  It
> is used in many pages including horde/imp/lib/Contacts.php
> Also, the space in IMP_Contacts is just a typo in my email.  Thanks.
I doubt it's defined on the horde level, most likely it's defined on the
imp level
https://github.com/horde/imp/blob/master/lib/Application.php#L98

Which would mean other apps cannot directly access this factory binding
without adding it to their own _bootstrap()
But the imp experts may know better.

-- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537



More information about the horde mailing list