depage-fs
Loading...
Searching...
No Matches
FsFtp.php
Go to the documentation of this file.
1<?php
2
3namespace Depage\Fs;
4
5use Depage\Fs\Exceptions\FsException;
6use Depage\Fs\Streams\FtpCurl;
7
8class FsFtp extends Fs
9{
10 public function __construct($params = array())
11 {
12 parent::__construct($params);
13
14 $streamOptions = [];
15 if (isset($params['caCert'])) {
16 $streamOptions['caCert'] = $params['caCert'];
17 }
18 if (isset($params['passive'])) {
19 $streamOptions['passive'] = $params['passive'];
20 }
21
22 FtpCurl::registerStream($this->url['scheme'], $streamOptions);
23 }
24}
25
26/* vim:set ft=php sw=4 sts=4 fdm=marker : */
__construct($params=array())
Definition FsFtp.php:10
static registerStream($protocol, array $parameters=[])
Definition FtpCurl.php:20