magento2-phpstorm-plugin icon indicating copy to clipboard operation
magento2-phpstorm-plugin copied to clipboard

[Generation] Create configuration model generator

Open bohdan-harniuk opened this issue 2 years ago • 1 comments

Create a configuration model generator.

Input:

  1. path to class (from the root of a module)
  2. 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

bohdan-harniuk avatar Sep 07 '22 11:09 bohdan-harniuk

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


m2-assistant[bot] avatar Sep 07 '22 11:09 m2-assistant[bot]