Code Monkey home page Code Monkey logo

Comments (6)

Simperfit avatar Simperfit commented on July 21, 2024

+1

from maker-bundle.

fabpot avatar fabpot commented on July 21, 2024

I'm actually 👎 on this one. It's exactly the same as the current make:controller command except that the method name would be __invoke(). I don't think it deserves another command. Generators creates files with code you own, which should be modified anyway.

from maker-bundle.

yceruto avatar yceruto commented on July 21, 2024

If an overriding template mechanism is approved for this bundle (#33) then this kind of need may be easier to achieve (e.g. https://github.com/symfony/maker-bundle/pull/50/files#diff-7d25cf7d5e19ace152dd9df61498d519).

Many companies would adapt the bundle templates to their own conventions, but still the promise of BC is a pending topic in this sense.

from maker-bundle.

webda2l avatar webda2l commented on July 21, 2024

Ok I don't go further with a PR for now and let you decide if you want close this issue or not.

from maker-bundle.

codedmonkey avatar codedmonkey commented on July 21, 2024

I don't see a reason not to do it unless we want to limit the number of commands in the bundle.

from maker-bundle.

javiereguiluz avatar javiereguiluz commented on July 21, 2024

I don't want to keep issues open for months, so I propose to close this one. The first reason is that in Symfony most people use controller or action indifferently, so make:action can be understood as creating an entire controller and also, adding a new method to an existing controller.

The second reason is that we're not 100% convinced yet about promoting the ADR philosophy (see this pending PR in the Symfony Docs for example: symfony/symfony-docs#8153). We are not saying that ADR is wrong. We just don't want (yet) to promote a whole new way of doing things.

from maker-bundle.

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.