[TYPO3-dev] How to get Plugin settings in ExtBase Repository in v6.2
Christian Ludwig
cl at viazenetti.de
Fri May 9 12:36:10 CEST 2014
Hi,
I have a FlexForm with a select field that gets its data by a user
function (itemsProcFunc). The user function simply ceated a new
repository and fetched the results from a REST service. The repository
needs some settings (i. e. URL and Password of the service) that are
defined as TS settings and are normally available in $this->settings.
In TYPO3 v4.7 I used this to load the configuration settings
$this->configurationManager =
t3lib_div::makeInstance('Tx_Extbase_Configuration_ConfigurationManager')
;
$this->settings = $this->configurationManager
->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterfac
e::CONFIGURATION_TYPE_SETTINGS,
'myPlugin',
'tx_myExtension');
But since I upgraded to TYPO3 v6.2, I get an empty Configuration Manager
and so no configuration:
$this->configurationManager =
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Extbase\
Configuration\ConfigurationManager');
$this->settings = $this->configurationManager
->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManager
Interface::CONFIGURATION_TYPE_SETTINGS,
'myPlugin',
'tx_myExtension');
It results in:
Call to a member function getConfiguration() on a non-object.
What has changed and how can I load the configuration of my extension in
v6.x?
This post is related to "FlexForm with itemsProcFunc using ExtBase
Repository".
Thanks
Christian
More information about the TYPO3-dev
mailing list