Skip to content

Plugin for EightPointsGuzzleBundle to provider generic middleware

License

Notifications You must be signed in to change notification settings

wizbit/GuzzleBundleMiddlewarePlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guzzle Bundle Middleware Plugin

This plugin integrates a generic way to include all middleware.

Requirements

Installation

Using composer:

command line
$ composer require wizbit/guzzle-bundle-middleware-plugin

Usage

Enable bundle

# app/AppKernel.php

new EightPoints\Bundle\GuzzleBundle\EightPointsGuzzleBundle([
    new Wizbit\Bundle\GuzzleBundleMiddlewarePlugin\GuzzleBundleMiddlewarePlugin(),
])

Basic configuration

# app/config/config.yml

eight_points_guzzle:
    clients:
        api_payment:
            base_url: "http://api.domain.tld"

            # define headers, options

            # plugin settings
            plugin:
                middleware:
                    - '@my.middleware.service'

About

Plugin for EightPointsGuzzleBundle to provider generic middleware

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages