/**
  * Завантажити torrent файл
  * @param Torrent $torrent
  */
 public static function downloadFile(Torrent $torrent)
 {
     header("Content-type: application/torrent");
     header("Expires: 0");
     header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
     header("Pragma: public");
     header("Content-Disposition: attachment; filename=" . $torrent->getInfo()->getName() . '.torrent');
     echo $torrent->getBinaryTorrent();
 }