Code Monkey home page Code Monkey logo

Comments (5)

tanberry avatar tanberry commented on May 30, 2024

Thanks so much Alan! Code generation is one of the topics that we identified to explain [better] in our PHP Developers Guide (currently titled Extension Developers Guide). Both conceptually and details such as you point out above; files created, what they do, how to treat them, etc. @xcomSteveJohnson can handle the CLI docs, and @tdobbs, can you capture this info in your draft topic on code generation?
Thanks again, Alan, we will get back with something for you to review.

from devdocs.

dkvashninbay avatar dkvashninbay commented on May 30, 2024

Hi Alan,

I'm sure that the documentation will be updated soon.

Currently SE compilation process consists of several steps (not ordered):

  • Application code generation (Factories, Proxies, etc.)
  • Area configuration aggregation (I.e. *.ser files are optimized DI
    configurations per area, are needed for DI container to construct objects)
  • Interceptors generation (optimized code generation of interceptors)
  • Interception cache generation (Aggregates plugin/interception
    configuration in optimized way and puts it into Magento cache)
  • Repositories code generation (same sense as p.1 - it generates code for
    API)
  • Service data attributes generation (Generates extension classes for data
    objects)

You can find all major operations in
\Magento\Setup\Module\Di\App\Task\Operation namespace

from devdocs.

tdobbs avatar tdobbs commented on May 30, 2024

@astorm, we've added some information on code generation at http://devdocs.magento.com/guides/v2.0/extension-dev-guide/code-generation.html. Let us know if this addresses your issues with this topic--and especially let us know where it doesn't.

from devdocs.

astorm avatar astorm commented on May 30, 2024

Solid start -- I like it! The only thing i'd suggest is a better introduction or easing into "compiling" code. The anyone with a background in programming, the work "compile" usually means converting something like C code into executable machine code, or transforming a program written in one language into another. In Magento's unique world, "compiling" really means

  • Generating any class files
  • Performing optimization and creating serialized cache files to improve performance, etc. (those .ser) files.

Folks already in the Magento eco-system should be able to suss that difference out after reading through this page -- but folks new to Magento may be left scratching their heads. Submitted a pull request with some initial thoughts, (not heavily invested in the specifics -- feel free to run with it)

#384

from devdocs.

 avatar commented on May 30, 2024

I think we made the updates you suggest. Please reopen if that's not the case.

from devdocs.

Related Issues (20)

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.