Giter Club home page Giter Club logo

Comments (6)

asgrim avatar asgrim commented on July 26, 2024 1

Generally when using symfony/console, using a container allows you to configure (manually, I don't think it's out the box, can't remember) lazy-loading services meaning unused dependencies aren't initiated :)

from psr-container-doctrine.

asgrim avatar asgrim commented on July 26, 2024

It's been a while since I looked at that; if we can verify the service configuration really isn't needed, then it should be removed from docs 👍

from psr-container-doctrine.

thexpand avatar thexpand commented on July 26, 2024

I tried to search for a code that uses these services in the whole project, but I can't find one. How can we verify this for sure?

from psr-container-doctrine.

asgrim avatar asgrim commented on July 26, 2024

@thexpand the example is just "how you might configure it in your project". If you don't need/want to register your commands as services, then that is fine, just skip that step. Perhaps clarification on the docs would help :)

from psr-container-doctrine.

asgrim avatar asgrim commented on July 26, 2024

I tried to search for a code that uses these services in the whole project, but I can't find one. How can we verify this for sure?

Oh and you won't find any services used in this project, if that's what you mean? This library does not consume services, it only provides factories so you can wire them into your container.

from psr-container-doctrine.

thexpand avatar thexpand commented on July 26, 2024

@asgrim Ah, I understand now. But why would you need them as services in the first place? Can you give me an example of a possible scenario for this? The only possible use case I can think of is to execute a migration command in another symfony-console custom command that I have in the application.

from psr-container-doctrine.

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.