Git Product home page Git Product logo

magento2-module-codegen's People

Contributors

aliasgar-bharmal-orba avatar janusz-witrykus-orba avatar kamil-sulek-orba avatar marcin-dzdza-orba avatar mateusz-scislowski-orba avatar michal-biarda-orba avatar michalbiarda avatar pavlo-vasheniuk-orba avatar piotr-francuz-orba avatar pvasheniuk-lingaro avatar slawomir-szymkowicz-orba avatar sszymkowicz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento2-module-codegen's Issues

Managing newly created module dependencies on fly

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:

  • it is possible only if we say 'yes' to question if we would like to have module generated - I assume we should get that question every time we generate something
  • it is a problem to resolve package version (for composer version) if we don't know for which magento version code is generated - it can be avoided by putting wildcard (*) on the other hand or we could specify our target magento version in some config file
  • matrix of dependencies vs template has to be stored in some config file, but I don't know if there are templates that can generate code dependant to different packages according to what we insert during survey in CLI

Empty copyrights

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
 */
-->

Fatal error for globally installed Codegen

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.

Crontab generation issue

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.