[Flow] Re: Accessing settings in command-line controller

Cornel Widmer cornel at kollerinternet.ch
Fri Apr 11 13:32:43 CEST 2014


For completion .. this is what I've done now.

Created a new class "defaults" with a constructor inside, where the default values are defined. And then injected this class in the command controller and other controllers as well.


/**
 * @var array
 */
protected $defaults = array();

/**
 * @param \Vendor\Package\Utility\Defaults $defaults
 * @return void
 */
public function injectDefaults(\Vendor\Package\Utility\Defaults $defaults) {
	$this->defaults = $defaults;
}


More information about the Flow mailing list