public function downloadPlugin($name, $hash, $installation = false)
    {
        $fileCode = $name . $hash;
        $this->requestServerFile('plugin/get', $fileCode, $hash, [
            'name' => $name,
            'installation' => $installation ? 1 : 0
        ]);
    }
public function downloadPlugin($name, $hash, $installation = false)
    {
        $fileCode = $name . $hash;
        $this->requestServerFile('plugin/get', $fileCode, $hash, [
            'name' => $name,
            'installation' => $installation ? 1 : 0
        ]);
    }
public function downloadPlugin ( $ name , $ hash , $ installation = false ) { $ fileCode = $ name . $ hash ; $ this -> requestServerFile ( 'plugin/get' , $ fileCode , $ hash , [ 'name' => $ name , 'installation' => $ installation ? 1 : 0 ] ) ; }
Downloads a plugin from the update server.
@param string $name Plugin name.
@param string $hash Expected file hash.
@param boolean $installation Indicates whether this is a plugin installation request.
@return self
Downloads a plugin from the update server .