Add the use of the constant FTP_* in config for FTP transfer mode and add doc for FTP Adapter

This commit is contained in:
Vincent
2011-12-07 10:42:40 +01:00
parent 2d0d6d830d
commit 22d8a9f3a9
2 changed files with 37 additions and 1 deletions

View File

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