shopware5 / SwagMediaSftp

MIT License
12 stars 6 forks source link

Pass config for adapter directly #7

Closed nlubisch closed 6 years ago

nlubisch commented 6 years ago

In order to make it possible to set all config values we can pass the config array directly instead of mapping all individual fields. The SftpAdapter holds an array of all configurable fields and only if the field is listed it will be set.

protected $configurable = ['host', 'hostFingerprint', 'port', 'username', 'password', 'useAgent', 'agent', 'timeout', 'root', 'privateKey', 'permPrivate', 'permPublic', 'directoryPerm', 'NetSftpConnection'];

I need to set "directoryPerm" in my case and currently this is not possible.

mitelg commented 6 years ago

thanks for your contribution @nlubisch :+1: :tada: :blue_heart: