From ef1f8a75ac45755cc6d28c21e5be562609f57ae6 Mon Sep 17 00:00:00 2001 From: Gesthispania Date: Thu, 10 Oct 2013 09:58:17 +0200 Subject: [PATCH 1/2] Add SSL option to work with modified Gaufrette that use SSL/TSL FTP --- DependencyInjection/Factory/FtpAdapterFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/DependencyInjection/Factory/FtpAdapterFactory.php b/DependencyInjection/Factory/FtpAdapterFactory.php index f59b18d..bcac7e8 100644 --- a/DependencyInjection/Factory/FtpAdapterFactory.php +++ b/DependencyInjection/Factory/FtpAdapterFactory.php @@ -52,6 +52,7 @@ class FtpAdapterFactory implements AdapterFactoryInterface ->beforeNormalization() ->ifString() ->then(function($v) { return constant($v); }) + ->booleanNode('ssl')->defaultFalse()->end() ->end() ->end() ; From 8b143c506595ca2e94ca9939e7b8bfc19094cb0e Mon Sep 17 00:00:00 2001 From: Gesthispania Date: Thu, 10 Oct 2013 10:19:27 +0200 Subject: [PATCH 2/2] Update FtpAdapterFactory.php --- DependencyInjection/Factory/FtpAdapterFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/Factory/FtpAdapterFactory.php b/DependencyInjection/Factory/FtpAdapterFactory.php index bcac7e8..986f822 100644 --- a/DependencyInjection/Factory/FtpAdapterFactory.php +++ b/DependencyInjection/Factory/FtpAdapterFactory.php @@ -47,12 +47,12 @@ class FtpAdapterFactory implements AdapterFactoryInterface ->scalarNode('password')->defaultNull()->end() ->booleanNode('passive')->defaultFalse()->end() ->booleanNode('create')->defaultFalse()->end() + ->booleanNode('ssl')->defaultFalse()->end() ->scalarNode('mode') ->defaultValue(defined('FTP_ASCII') ? FTP_ASCII : null) ->beforeNormalization() ->ifString() ->then(function($v) { return constant($v); }) - ->booleanNode('ssl')->defaultFalse()->end() ->end() ->end() ;