function StreamHandler::addNotification
2 calls to StreamHandler::addNotification()
- StreamHandler::add_debug in vendor/
guzzlehttp/ guzzle/ src/ Handler/ StreamHandler.php - StreamHandler::add_progress in vendor/
guzzlehttp/ guzzle/ src/ Handler/ StreamHandler.php
File
-
vendor/
guzzlehttp/ guzzle/ src/ Handler/ StreamHandler.php, line 600
Class
- StreamHandler
- HTTP handler that uses PHP's HTTP stream wrapper.
Namespace
GuzzleHttp\HandlerCode
private static function addNotification(array &$params, callable $notify) : void {
// Wrap the existing function if needed.
if (!isset($params['notification'])) {
$params['notification'] = $notify;
}
else {
$params['notification'] = self::callArray([
$params['notification'],
$notify,
]);
}
}