[TYPO3-mvc] Extbase 1.3.0 and scheduler
Franz Koch
typo3.RemoveForMessage at elements-net.de
Tue Feb 1 19:39:58 CET 2011
Hey again,
>> before Extbase 1.3.0 I initialized my environment within a scheduler task
>> like this (dirty, yes, but without alternative at the time):
>>
>> Before execute() is called, I do the following:
>>
>> $extbaseConfiguration = array(
>> 'persistence' => '< task.tx_myext.persistence',
>> 'settings' => '< task.tx_myext.settings',
>> );
>>
>> $this->dispatcher =
>> t3lib_div::makeInstance('Tx_Extbase_Dispatcher');
>> // initializeConfigurationManagerAndFrameworkConfiguration() must be
>> set to public for this to work
>
> please use the bootstrap now instead of the dispatcher. Then it should
> work again like before.
I just had a closer look on what you did. Well, basically instantiate
the bootstrap, and run it, passing your plugin configuration (including
switchableControllerActions) and you should be done. No need to mess
around with the configurationManager or the persistenceBackend anymore.
$bootstrap = t3lib_div::makeInstance('Tx_Extbase_Core_Bootstrap');
$output = $bootstrap->run('', $yourConfiguration);
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list