mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
PHRAS-771 #time 2h
report de PHRAS-750 (connect to ftp via a auth proxy)
This commit is contained in:
@@ -21,9 +21,11 @@ class FtpServiceProvider implements ServiceProviderInterface
|
||||
*/
|
||||
public function register(Application $app)
|
||||
{
|
||||
$app['phraseanet.ftp.client'] = $app->protect(function ($host, $port = 21, $timeout = 90, $ssl = false, $proxy = false, $proxyport = false) {
|
||||
return new \ftpclient($host, $port, $timeout, $ssl, $proxy, $proxyport);
|
||||
});
|
||||
$app['phraseanet.ftp.client'] = $app->protect(
|
||||
function ($host, $port = 21, $timeout = 90, $ssl = false, $proxy = false, $proxyport = false, $proxyuser = false, $proxypwd = false) {
|
||||
return new \ftpclient($host, $port, $timeout, $ssl, $proxy, $proxyport, $proxyuser, $proxypwd);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user