[TYPO3-mvc] Access settings of another extension
Sebastian Kurfürst
sebastian at typo3.org
Wed Feb 16 07:23:19 CET 2011
Hey Tymoteusz,
[what I'm telling you now is NO PUBLIC API -- so watch the release notes
of future versions for breaking changes!]
You can inject the ConfigurationManagerInterface into your custom class,
and then use getConfiguration like the following:
>
> protected $configurationManager;
>
> public function injectConfigurationManager(Tx_Extbase_Configuration_ConfigurationManagerInterface $configurationManager) {
> $this->configurationManager = $configurationManager;
> }
>
> .....
>
>
> $this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS, 'OTHER_EXTENSION_NAME');
Greets,
Sebastian
More information about the TYPO3-project-typo3v4mvc
mailing list