[FEATURE] Support injecting Settings through annotation
This change extends the existing inject annotation with two new
- setting: to specify a path to a setting that should be injected into that property
- package: the package to load the setting from, by default the package that the class belongs to
The main goal is to make the access to settings more convenient, because
you currently need to inject the configurationManager and get the setting
manually from it, even if you only need one simple string.
As a best practice the user should add an setter for it's settings as well, but
this is only to make more portable. This change does not need a setter.
/** * @var string * @Flow\Inject(setting="my.setting")
/** * @var string * @Flow\Inject(setting="core.phpBinaryPathAndFilename", package="TYPO3.Flow")