Coder Social home page Coder Social logo

guzzle6-bundle's People

Contributors

brandon0 avatar dvaeversted avatar e-moe avatar pmarien avatar vkhramtsov avatar yeroon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

guzzle6-bundle's Issues

Can't override emoe_guzzle.monolog.format

First, thanks for your bundle.

I'm trying to use it with symfony 2.8-dev (not sure if this is the problem or not). Anyway I'm trying to override the monolog format in config.yml in a parameters: section, but it doesn't seem to work for some reason.

Do you have any clues as to what I might be doing wrong? It's not a typo, I've verified, however when things get compiled into the cache even, the default value and not my overridden value is used.

Guzzle 7 support

While i realise that this package is named "guzzle6-bundle", it would be nice to have support for Guzzle 7 if possible.

Add symfony/stopwatch as dependency

In Symfony 4 the stopwatch component is not included by default.
Requiring in a Symfony 4 application throws the following error:

The service "guzzle.client" has a dependency on a non-existent service "debug.stopwatch".

Fix:
Add the component as dependency.
composer req symfony/stopwatch

require symfony/framework-bundle 5.0

This bundle can not be installed on Symfony 5.0. Can requirements be changed so that it requires symfony/framework-bundle 5.0 and symfony/stopwatch 5.0?

Alias for Autowiring

With Symfony 4 it is possible to autowire services via type hinting.
Please add "GuzzleHttp\ClientInterface" as a service alias for "guzzle.client".
This will allow to autowire the default client without additional service configuration for the own application.

Require or require-dev?

Would there be a reason to require this component outside of dev environment?

Documentation says require and
new Emoe\GuzzleBundle\EmoeGuzzleBundle(),
implies that it should always be added to bundles array rather than only in test and dev.

GuzzleDataCollector should implement reset method (since Symfony 3.4)

When used with Symfony 3.4.X, the following deprecation notice is being returned:

User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since version 3.4 and will be unsupported in 4.0 for class "Emoe\GuzzleBundle\DataCollector\GuzzleDataCollector".

According to the Symfony changelog:

Implementing DataCollectorInterface without a reset() method has been deprecated and will be unsupported in 4.0.

Quoting %emoe_guzzle.*%

Apparently symfony has deprecated things like this:

    emoe_guzzle.stopwatch:
        class: %emoe_guzzle.stopwatch.class%
        ...

Instead you're supposed to now do it like this (with double or single quotes):

    emoe_guzzle.stopwatch:
        class: "%emoe_guzzle.stopwatch.class%"
        ...

Would you be willing to update your services.yml / monolog.yml files?

Can't get response body contents with log enabled

If I set in my config.yml

emoe_guzzle:
    log:
        enabled: true

then I can't deserialize response body contents because is empty

$response = $this->guzzleClient->post($this->url, $body);

$object = $this->serializer->deserialize($response->getBody()->getContents());

It's possible to keep both behaviours?

DELETE Requests Categorized as "Other" in Profiler

When a Guzzle DELETE request is captured and displayed in the profiler, it is put in the "OTHER" tab, instead of "DELETE". See screenshot:
symfony profiler

This is just a simple typo in the template file that I can submit a PR to address.

Curl?

How do I tell the client to use Curl instead of the StreamHandler? I can't really find any config option for that.

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.