[Typo3-dev] Extension Kickstarter/Cleanup+Optimization
Ingmar Schlecht
ingmars at web.de
Sun May 23 11:14:49 CEST 2004
Martin T. Kutschker schrieb:
> Ingmar Schlecht wrote:
>
>>
>> BTW, what is the difference between a hook and a service?
>
>
> A hook is a specific place in a method that offers some options to
> callback functions (eg alter the processed data, cancel the "default"
> action"). What these options are and what data the callback gets is hook
> dependent.
>
> A service is a completely different thing. A service provides an
> abstract API for some task. So the calling code does not have to worry
> about the actual implementatoin of the task (eg when the service is
> implemented by native OS executables or by different PHP extensions).
>
> > Wouldn't all hooks be doable as services?
>
> I hope my answer made clear that this is not possible.
Yes, it did, thanks very much!
cheers,
Ingmar
More information about the TYPO3-dev
mailing list