magento2-phpstorm-plugin
magento2-phpstorm-plugin copied to clipboard
[Generation] Create configuration model generator
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
Hi @bohdan-harniuk. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
- Join Magento Community Engineering Slack and ask your questions in #github channel.