[dev] Horde API: same 'provides' line in two modules in registry

Jan Schneider jan at horde.org
Mon Jan 16 10:21:34 UTC 2012


Zitat von Rui Carneiro <rui.arc at gmail.com>:

> On Mon, Jan 16, 2012 at 10:06 AM, Ralf Lang <lang at b1-systems.de> wrote:
>
>> Can two modules provide the same api or would this result in unpredictable
>> behaviour?
>> For example, can sesha be the source of 'tickets/listQueues' alongside
>> with whups or are these mutually exclusive?
>>
> My guess is that only the last match on registry.php will work :)

Correct. The only special case is, if one application defines single  
API methods. For example IMP provides "mail" but Ingo provides  
"mail/blacklistFrom" etc. Those can co-exist. And to stick with that  
example, Sam can provide "mail/blacklistFrom" too, but it's  
out-commented by default to not overrides Ingo's "provide" settings.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list