Open
Description
Create a configuration model generator.
Input:
- path to class (from the root of a module)
- configuration model name (class name/file name)
Output:
Generated class in the specified directory (directories should be generated if not exist).
Generated scopeConfig parameter and constructor with its initialisation:
/**
* @var ScopeConfigInterface
*/
private $scopeConfig;
/**
* @param ScopeConfigInterface $scopeConfig
*/
public function __construct(
ScopeConfigInterface $scopeConfig
) {
$this->scopeConfig = $scopeConfig;
}
Acceptance Criteria:
- this generation should be covered by test case.
- no actions should be created (will be done separately)
- consider implementing new architecture ways to create generators (try to not follow current one, maybe we can improve it)
Additional context
Mainline branch: mainline/generate-configuration-model