[FLOW3-general] Settings for all packages.

Bastian Waidelich bastian at typo3.org
Fri Mar 22 10:45:34 CET 2013


Stephen Bungert wrote:

Hi Stephen,

> In the definitive guide I have read how you can create settinsg for your
> package. But how can I create settings that are accessible to every package?

You can inject the ConfigurationManager and load arbitrary settings:

/**
  * @Flow\Inject
  * @var \TYPO3\Flow\Configuration\ConfigurationManager
  */
protected $configurationManager;

public function initializeObject() {
	$this->otherPackageSettings = 
$this->configurationManager->getConfiguration(\TYPO3\Flow\Configuration\ConfigurationManager::CONFIGURATION_TYPE_SETTINGS, 
'Other.Package');
}


HTH

-- 
Bastian Waidelich
--
Core Developer Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the FLOW3-general mailing list