Skip to content

Add code generation tool #21

@d3p1

Description

@d3p1

Description

It would be useful to add a code generation tool for development environments. It could be one that uses AI, other like magento2-module-codegen, or magento2-code-generator, or a combination of all of them.

Solution

Add tool to development environment.

Note

It was tried to use magento2-module-codegen as a global tool (compose require global lingaro/magento2-codegen) but the following error occurs when it is tried to use some of its commands: Fatal error: Lingaro\Magento2Codegen\Util\Symfony\CommandTester and Symfony\Component\Console\Tester\TesterTrait define the same property ($input) in the composition of Lingaro\Magento2Codegen\Util\Symfony\CommandTester. However, the definition differs and is considered incompatible. Class was composed in /composer/vendor/lingaro/magento2-codegen/src/Lingaro/Magento2Codegen/Util/Symfony/CommandTester.php on line 20. If it is possible to solve this issue, perhaps it is a good tool to take into consideration. I love that you have a config.yml that you can copy in the root of a Magento project and you can define the docBlock to use as a header for every type of file.

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions