/** * @return \GuzzleHttp\HandlerStack */ public function getHandlerStack() { if (!static::$handlerStack) { static::$handlerStack = HandlerStack::create(); } return static::$handlerStack; }
public static function detachAll() { if (static::$handling) { static::$handlerStack = array(); restore_error_handler(); restore_exception_handler(); ob_end_flush(); static::$handling = false; } }