mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 22:59:59 +00:00
BulkCurlTask: Remove complexData parameter (BC break)
This is a leftover from when it was necessary to pass complex data to the AsyncTask constructor in order to have it locally-stored. Since this has now been superseded by storeLocal(), it doesn't make sense for this parameter to exist anymore.
This commit is contained in:
parent
2cb6307e5b
commit
779d92c656
@ -121,8 +121,9 @@ class TimingsCommand extends VanillaCommand{
|
|||||||
CURLOPT_AUTOREFERER => false,
|
CURLOPT_AUTOREFERER => false,
|
||||||
CURLOPT_FOLLOWLOCATION => false
|
CURLOPT_FOLLOWLOCATION => false
|
||||||
]]
|
]]
|
||||||
], $sender);
|
]);
|
||||||
$this->host = $host;
|
$this->host = $host;
|
||||||
|
$this->storeLocal($sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onCompletion(Server $server){
|
public function onCompletion(Server $server){
|
||||||
|
@ -42,11 +42,9 @@ class BulkCurlTask extends AsyncTask{
|
|||||||
* "timeout", "extraHeaders" and "extraOpts". Documentation of these options are same as those in
|
* "timeout", "extraHeaders" and "extraOpts". Documentation of these options are same as those in
|
||||||
* {@link Utils::simpleCurl}.
|
* {@link Utils::simpleCurl}.
|
||||||
*
|
*
|
||||||
* @param array $operations
|
* @param array $operations
|
||||||
* @param mixed|null $complexData
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $operations, $complexData = null){
|
public function __construct(array $operations){
|
||||||
$this->storeLocal($complexData);
|
|
||||||
$this->operations = serialize($operations);
|
$this->operations = serialize($operations);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user