[TYPO3-mvc] creating a repository from inside a scheduler task

Christian Zenker christian.zenker at 599media.de
Fri Jul 23 16:23:41 CEST 2010


Hi Michiel.

I had the exact same error message some days ago, when I was trying to  
initialize a repository from a hook. (see "[TYPO3-mvc] Using Repository  
outside a controller" from this Tuesday).

The solution is stupidly simple. Just create an instance of the dispatcher:

t3lib_div::makeInstance("Tx_Extbase_Dispatcher")

I guess this could help you too.

Christian.


More information about the TYPO3-project-typo3v4mvc mailing list