/** * Applies mass configuration to default request * * @param array $config * @return $this */ public function config(array $config) { parent::config($config); if (array_key_exists('fingerprint', $config)) { $this->defaults->setFingerprint($config['fingerprint']); } if (array_key_exists('path', $config)) { $this->defaults->setPath($config['path']); } if (array_key_exists('local_path', $config)) { $this->defaults->setLocalPath($config['local_path']); } if (array_key_exists('pattern', $config)) { $this->defaults->setPattern($config['pattern']); } if (array_key_exists('files_callback', $config)) { $this->defaults->setFilesCallback($config['files_callback']); } if (array_key_exists('do_cleanup', $config)) { $this->defaults->setDoCleanup($config['do_cleanup']); } return $this; }
/** * Applies mass configuration to default request * * @param array $config * @return $this */ public function config(array $config) { parent::config($config); if (array_key_exists('http_method', $config)) { $this->defaults->setHttpMethod($config['http_method']); } return $this; }