adgoal/guzzle-rewind-middleware

Adgoal GuzzleRewindMiddleware

Installs: 3 779

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:Makefile

0.0.1 2019-09-24 07:53 UTC

This package is auto-updated.

Last update: 2021-11-24 12:58:06 UTC


README

Example usage

services:
  GuzzleHttp\Client:
    arguments:
      - handler: '@guzzle.handler-stack'

  guzzle.handler-stack:
    class: GuzzleHttp\HandlerStack
    factory: [ GuzzleHttp\HandlerStack, 'create' ]
    calls:
      - [ 'push', [ '@guzzle.rewind.middleware', 'rewind'] ]

  guzzle.rewind.middleware:
    class: Adgoal\GuzzleRewindMiddleware\GuzzleRewindMiddleware
    factory: [ Adgoal\GuzzleRewindMiddleware\GuzzleRewindMiddleware, rewind ]