Update FtpAdapterFactory.php

This commit is contained in:
Gesthispania 2013-10-10 10:19:27 +02:00
parent ef1f8a75ac
commit 8b143c5065

View File

@ -47,12 +47,12 @@ class FtpAdapterFactory implements AdapterFactoryInterface
->scalarNode('password')->defaultNull()->end() ->scalarNode('password')->defaultNull()->end()
->booleanNode('passive')->defaultFalse()->end() ->booleanNode('passive')->defaultFalse()->end()
->booleanNode('create')->defaultFalse()->end() ->booleanNode('create')->defaultFalse()->end()
->booleanNode('ssl')->defaultFalse()->end()
->scalarNode('mode') ->scalarNode('mode')
->defaultValue(defined('FTP_ASCII') ? FTP_ASCII : null) ->defaultValue(defined('FTP_ASCII') ? FTP_ASCII : null)
->beforeNormalization() ->beforeNormalization()
->ifString() ->ifString()
->then(function($v) { return constant($v); }) ->then(function($v) { return constant($v); })
->booleanNode('ssl')->defaultFalse()->end()
->end() ->end()
->end() ->end()
; ;