[TYPO3-mvc] Hooks and extbase

Jochen Rau jochen.rau at typoplanet.de
Wed Dec 2 12:00:57 CET 2009


Hi.

Julian Kleinhans wrote:
> quick and dirty question :-)
> Is there a best practice to use core hooks with extbase ?
>
> Or can/must i use the old way ?
>
> $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output'][]
> =
> 'EXT:extkey/Resources/Private/PHP/Hooks/ContentPostProc.php->user_contentPostProc_hook->contentPostProc';

Quick and dirty answer: yes.

We can get rid of hooks by implementing Dependency Injection in Extbase 
2.0 and build class hierarchies.

Regards
Jochen
-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list