FtpAdapter example


        $adapter = new LocalAdapter($this->baseDir);

        return new Filesystem($adapter);
    }

    /** * @return Filesystem */
    private function getRemoteFilesystem()
    {
        $adapter = new FtpAdapter(
            $this->remoteConfig['path'],
            $this->remoteConfig['server'],
            [
                'username' => $this->remoteConfig['user'],
                'password' => $this->remoteConfig['password'],
            ]
        );

        return new Filesystem($adapter);
    }
}
Home | Imprint | This part of the site doesn't use cookies.