public function getTorrentPaths() { if ($this->torrentPaths === null) { $torrentManager = TorrentManager::getInstance($this->ownerId); $this->torrentPaths = $torrentManager->getPaths(); } return $this->torrentPaths; }
protected function getArguments(Request $request) { $arguments = parent::getArguments($request); array_unshift($arguments, TorrentManager::getInstance($this->getUserId())); return $arguments; }