/** * @param bool|false $file * @param string $strategie * @return mixed * @throws Exception */ public function getFileFromFtp($file = false, $strategie = "php") { try { if ($this->logger) { $this->ftp->setLogger($this->logger); } if ($this->passive_ftp) { $this->ftp->setPassiveFtp($this->passive_ftp); } if ($this->passive_ftp) { $this->ftp->setInspectFtp($this->inspect_ftp); } $return = $this->ftp->using($strategie)->get($file); return $return; } catch (\Exception $e) { throw new Exception($e->getMessage()); } }