[TYPO3-dev] Signal vs hook?

Christian Kuhn lolli at schwarzbu.ch
Mon Apr 28 19:06:27 CEST 2014


Hey.

On 04/28/2014 09:39 AM, Dmitry Dulepov wrote:
> I stumbled upon one RFC (https://review.typo3.org/22471), which adds a
> signal to ContentObjectRenderer (former tslib_cObj).
>
> That looks like more coding than old hooks and adds a dependency on
> Extbase. What are the benefits of using signals instead of old hooks?

The dependency to extbase is no issue anymore since extbase is always 
activated since 6.0.

Signal/Slot is a more simple and cleaner API than plain old hooks, using 
the observer pattern: They support multiple slots by default,the 
calling, using and registration API is always identical.

Regards
Christian



More information about the TYPO3-dev mailing list