Skip to content

Comments

[9.x] Added new env options for v3 sftp adaptor#7757

Merged
taylorotwell merged 2 commits intolaravel:9.xfrom
dunhamjared:9.x
Mar 3, 2022
Merged

[9.x] Added new env options for v3 sftp adaptor#7757
taylorotwell merged 2 commits intolaravel:9.xfrom
dunhamjared:9.x

Conversation

@dunhamjared
Copy link
Contributor

Added new possible values for the SFTP Driver Configuration example.

The new optional values were added to match the order of the arguments for: League\Flysystem\PhpseclibV3\SftpConnectionProvider.

return new SftpConnectionProvider(
    $options['host'],
    $options['username'],
    $options['password'] ?? null,
    $options['privateKey'] ?? null,
    $options['passphrase'] ?? null,
    $options['port'] ?? 22,
    $options['useAgent'] ?? false,
    $options['timeout'] ?? 10,
    $options['maxTries'] ?? 4,
    $options['hostFingerprint'] ?? null,
    $options['connectivityChecker'] ?? null
);

@taylorotwell taylorotwell merged commit 5e1d879 into laravel:9.x Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants