[TYPO3-mvc] Scheduler - Extbase repository

Domi djgarms at gmail.com
Tue Jul 9 12:31:05 CEST 2013


Hi Stefan,

look carefully at my suggestions:

$configurationManager = 
$this->objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager');

$settings = 
$configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS, 
'extensionKey', 'pluginName');

$extbaseFrameworkConfiguration = 
$configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK, 
'extensionKey', 'pluginName');
 
$configurationManager->setConfiguration($extbaseFrameworkConfiguration);

First of all, don't instantiate the objectManager again, its injected 
already in the CommandController. Then load your configurations, if you 
don't need your settings you can ignore the line with $settings = (...)

With the last line $configurationManger->setConfiguration you make it 
possible, that storagePid and so on are really available in all your 
repository calls.

Good luck with this, just exchange extensionKey and pluginName and you 
should be good to go.

Cheers,
Dominic


More information about the TYPO3-project-typo3v4mvc mailing list