Skip to content

Conversation

@MizouziE
Copy link

@MizouziE MizouziE commented Dec 2, 2025

Adds

  • A League\Flysystem\PhpseclibV3\SftpConnectionProvider::resetConnection() method which leverages existing public disconnect() and private setupConnection() methods.
  • Test to assert that the initial connection from provideConnection() differs from that returned by resetConnection() and that subsequent calls to provideConnection() return the re-initiated connection.

Reasoning

An application I work on has a Laravel/Symfony Command which is used to diagnose various connections to SFTP servers and we would prefer to keep the logs for each test action separate. Currently we need to flush and re-establish the connection for each step. This addition would allow us to configure the connection once and reset it for each test action.

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.

1 participant