public function getTorrentPaths() { if ($this->torrentPaths === null) { $torrentManager = TorrentManager::getInstance($this->ownerId); $this->torrentPaths = $torrentManager->getPaths(); } return $this->torrentPaths; }
protected function removeTorrent(Request $request, TorrentManager $torrentManager, $hash) { $torrentManager->removeTorrent($hash); return $this->success(); }