Skip to content

Commit

Permalink
Merge pull request KnpLabs#17 from rezzza/php_without_ftp
Browse files Browse the repository at this point in the history
If ftp extension of php miss, it'll not throw exception
  • Loading branch information
Herzult committed Aug 2, 2012
2 parents b414f4f + 9a29c61 commit ca47769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/Factory/FtpAdapterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function addConfiguration(NodeDefinition $builder)
->booleanNode('passive')->defaultFalse()->end()
->booleanNode('create')->defaultFalse()->end()
->scalarNode('mode')
->defaultValue(FTP_ASCII)
->defaultValue(defined('FTP_ASCII') ? FTP_ASCII : null)
->beforeNormalization()
->ifString()
->then(function($v) { return constant($v); })
Expand Down

0 comments on commit ca47769

Please sign in to comment.