lingaro / magento2-module-codegen Goto Github PK
View Code? Open in Web Editor NEWMagento 2 Code Generator
License: MIT License
Magento 2 Code Generator
License: MIT License
In version 3.3.0 there is an unexpected :
after getId()
in the following code snippet. It causes syntax error for generated file.
public function getId():
{
return $this->_getData('entity_id');
}
That's enhancement I would find useful, but don't know the architecture of your library for now, so just posting an idea.
So, let's assume we generate certain types of templates, with an option of module creation on the fly. It would be nice to have dependencies sorted out in process. For example, generation of crontab, should be followed by adding dependency to Magento_Cron in module.xml and composer.json. However there are some issues I see:
Thanks for providing such an useful tool for community.
Adding additional flag like "includeCompanyHeader" would be useful as not all companies includes company name and exact author data. Adding empty values doesn't prevent adding copyrights notes in headers and they look like this:
<!--
/**
* @copyright Copyright © . All rights reserved.
* @author
*/
-->
When Codegen 4.0 is installed globally via Composer, it throws a fatal error when running.
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 /home/devilbox/.composer/vendor/lingaro/magento2-codegen/src/Lingaro/Magento2Codegen/Util/Symfony/CommandTester.php on line 20
This can be fixed by not allowing installation of symfony/console
with version 5.4
or higher.
Thanks for providing such an useful tool for community. I have just started testing it around and found tiny issues.
While answering questions about crontab.xml file I couldn't insert value 0 for scheduleHour. I bet the same issue may occur for other parts of crontab expression. Maybe 0 is casted to null or sth like this and it is not accepted as value is required.
Generated crontab not exactly matches what I've inserted through CLI. Job name is prepended with snake case module name, what was for me unexpected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.