[TYPO3-mvc] Extbase 1.3.0 and scheduler
roberto blanko
robertoblanko at gmail.com
Tue Feb 1 17:37:59 CET 2011
Hi folks,
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
$this->dispatcher->initializeConfigurationManagerAndFrameworkConfiguration($extbaseConfiguration,
'');
$frameworkConf =
$this->dispatcher->getExtbaseFrameworkConfiguration();
$this->settings = $frameworkConf['settings'];
After execute()is called I do the following:
$this->dispatcher->getPersistenceManager()->persistAll();
As of 1.3.0 this whole construct doesn't work anymore. I now that this was
never part of the public APIs. I just needed a solution.
Can someone please post an example, on how I init extbase, force to persist
and access the settings (typoscript).
Help would be very appreciated.
Regards
roberto
More information about the TYPO3-project-typo3v4mvc
mailing list