[Flow] How tto retrieve custom configuration?

Tomas M flow at 46dev.de
Thu Dec 10 12:01:47 CET 2015


Hello flow users!

Actually I try to "read" my custom configuration from yaml.
This yaml is located at /MY/project/Configuration/foo.yaml

If I do a 
/flow configuration:show
at commandline I get:

Available configuration types:
  Caches
  Objects
  Routes
  Policy
  Settings
  Views
  MY.project.foo

If I do a
/flow configuration:show --type MY.project.foo

I get the content from yaml.

but, if I try to access these "settings" within the framework i.e. from a CommandController
I always getting NULL.

I followed all examples in documentation:
http://flowframework.readthedocs.org/en/stable/TheDefinitiveGuide/PartIII/Configuration.html

I.e.:
	/**
	 * @Flow\InjectConfiguration(package="MY.project.foo")
	 * @var array
	 */
	protected $someOtherPackageSettings = array();	


than:

$this->someOtherPackageSettings is equal NULL

I've try several other methods to access the settings, but it results every time in NULL...

Does some have an idea was going wronge here?




More information about the Flow mailing list