Skip to content

[Generation] Create configuration model generator #1162

Open
@bohdan-harniuk

Description

@bohdan-harniuk

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions