Coder Social home page Coder Social logo

Require or require-dev? about guzzle6-bundle HOT 7 CLOSED

e-moe avatar e-moe commented on July 2, 2024
Require or require-dev?

from guzzle6-bundle.

Comments (7)

e-moe avatar e-moe commented on July 2, 2024

In most cases it should be available in all environments (not only dev). But if you have any specific reasons you certainly can enable it only in selected environments.

from guzzle6-bundle.

Starojitski avatar Starojitski commented on July 2, 2024

I thought that this component only adds Guzzle tab to Symfony profiler. What's the point to add it to production? Am i missing something?

from guzzle6-bundle.

e-moe avatar e-moe commented on July 2, 2024

This bundle adds Guzzle library and define guzzle clients as a Symfony services so you can make HTTP calls to external APIs from your code.

from guzzle6-bundle.

Starojitski avatar Starojitski commented on July 2, 2024

You mean that by adding this bundle you don't need to add "guzzlehttp/guzzle" to composer.json? That it takes care of that for you AND adds the Guzzle tab to the symfony web profiler as a side effect.
I thought it only did the latter and all the other guzzle related functionality you had to do yourself

from guzzle6-bundle.

e-moe avatar e-moe commented on July 2, 2024

No, you don't need to add guzzlehttp/guzzle to your composer.json file if you are using guzzle6-bundle. And yes, guzzle clients created by this bundle will be automatically integrated in web profiler.

from guzzle6-bundle.

Starojitski avatar Starojitski commented on July 2, 2024

In readme.md requirements section says:
Guzzle PHP Framework (included by composer)
Which implies that "guzzlehttp/guzzle" must be included in composer, not that it will be installed automagically.
And "This bundle integrates Guzzle 6.x into Symfony." could mean "only the profiler integration" and not adding it.
I am trying to decide whether i am just not bright enough or your readme.md is not clear enough. But most probably it's both.

from guzzle6-bundle.

e-moe avatar e-moe commented on July 2, 2024

@Starojitski , thanks for you comment. I'll try to rephrase theses sentences for better readability.

from guzzle6-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.