The Wayback Machine - https://web.archive.org/web/20200914142607/https://github.com/topics/guzzlehttp
Skip to content
#

guzzlehttp

Here are 127 public repositories matching this topic...

rvanlaak
rvanlaak commented Aug 22, 2018

Another use case to document; changing the client's class, and how to autowire that to another own service definition.

Possible content

The bundle can get used as "a factory" to create an autowireable class. That way the bundle puts the middleware (like logging / error reporting / timing) in place.

<?php

namespace Acme\Infra\Shopping;

class Client extends \GuzzleHttp\Clie
Tobion
Tobion commented Jan 15, 2018

The MockMiddleware creates a RejectedPromise with a string reason in https://github.com/csarrazi/guzzle-cache-middleware/blob/master/src/MockMiddleware.php#L47 if the cache is not found. The log middleware then fails because the MessageFormatter requires an exception in https://github.com/guzzle/guzzle/blob/master/src/MessageFormatter.php#L70

It seems like a rejection reason does not necessaril

Improve this page

Add a description, image, and links to the guzzlehttp topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the guzzlehttp topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.