getDirectory(); } /** * @inheritDoc */ public function getDirectory($parentLink = '/', $acceptableMime = [], $depth = 1) { throw new common_Exception('Unable to browse the internet'); } public function getFileStream($link) { $url = str_replace('\/', '/', $link); common_Logger::d('Getting Stream ' . $url); $response = $this->getRequest($url); $stream = $response->getBody(); return $stream; } /** * @param $url * @return \Psr\Http\Message\ResponseInterface */ private function getRequest($url) { $client = new Client(); return $client->get($url); } }