You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 thedocBlockto use as a header for every type of file.Additional information