Open Journal Systems
3.3.0
|
Public Member Functions | |
onCommandBeforeSend (Event $event) | |
Static Public Member Functions | |
static | getSubscribedEvents () |
Protected Member Functions | |
getErrorClosure (RequestInterface $request, CommandInterface $command, Operation $operation) | |
Converts generic Guzzle response exceptions into errorResponse exceptions
Definition at line 15 of file ErrorResponsePlugin.php.
|
protected |
RequestInterface | $request | Request that received an error |
CommandInterface | $command | Command that created the request |
Operation | $operation | Operation that defines the request and errors |
ErrorResponseException |
Definition at line 47 of file ErrorResponsePlugin.php.
References Guzzle\Service\Description\Operation\getErrorResponses().
Referenced by Guzzle\Plugin\ErrorResponse\ErrorResponsePlugin\onCommandBeforeSend().
|
static |
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
For instance:
Implements Symfony\Component\EventDispatcher\EventSubscriberInterface.
Definition at line 17 of file ErrorResponsePlugin.php.
Guzzle\Plugin\ErrorResponse\ErrorResponsePlugin::onCommandBeforeSend | ( | Event | $event | ) |
Adds a listener to requests before they sent from a command
Event | $event | Event emitted |
Definition at line 27 of file ErrorResponsePlugin.php.
References Guzzle\Plugin\ErrorResponse\ErrorResponsePlugin\getErrorClosure().