Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • ErrorResponsePlugin

Interfaces

  • ErrorResponseExceptionInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class ErrorResponsePlugin

Converts generic Guzzle response exceptions into errorResponse exceptions

Guzzle\Plugin\ErrorResponse\ErrorResponsePlugin implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Namespace: Guzzle\Plugin\ErrorResponse
Located at Guzzle/Plugin/ErrorResponse/ErrorResponsePlugin.php
Methods summary
public static array
# getSubscribedEvents( )

Returns an array of event names this subscriber wants to listen to.

Returns an array of event names this subscriber wants to listen to.

Returns

array
The event names to listen to

Implementation of

Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()
public
# onCommandBeforeSend( Guzzle\Common\Event $event )

Adds a listener to requests before they sent from a command

Adds a listener to requests before they sent from a command

Parameters

$event
Guzzle\Common\Event
$event Event emitted
protected Closure
# getErrorClosure( Guzzle\Http\Message\RequestInterface $request, Guzzle\Service\Command\CommandInterface $command, Guzzle\Service\Description\Operation $operation )

Parameters

$request
Guzzle\Http\Message\RequestInterface
$request Request that received an error
$command
Guzzle\Service\Command\CommandInterface
$command Command that created the request
$operation
Guzzle\Service\Description\Operation
$operation Operation that defines the request and errors

Returns

Closure
Returns a closure
php-coveralls API documentation generated by ApiGen 2.8.0