If ftp extension of php miss, it'll not throw exception
This commit is contained in:
parent
b414f4f142
commit
9a29c61135
|
@ -53,7 +53,7 @@ class FtpAdapterFactory implements AdapterFactoryInterface
|
||||||
->booleanNode('passive')->defaultFalse()->end()
|
->booleanNode('passive')->defaultFalse()->end()
|
||||||
->booleanNode('create')->defaultFalse()->end()
|
->booleanNode('create')->defaultFalse()->end()
|
||||||
->scalarNode('mode')
|
->scalarNode('mode')
|
||||||
->defaultValue(FTP_ASCII)
|
->defaultValue(defined('FTP_ASCII') ? FTP_ASCII : null)
|
||||||
->beforeNormalization()
|
->beforeNormalization()
|
||||||
->ifString()
|
->ifString()
|
||||||
->then(function($v) { return constant($v); })
|
->then(function($v) { return constant($v); })
|
||||||
|
|
Loading…
Reference in New Issue
Block a user