feat: Improve Flysystem bundle DX with push/pull console commands#204
Merged
maxhelias merged 12 commits intothephpleague:3.xfrom Mar 25, 2026
Merged
Conversation
maxhelias
reviewed
Mar 24, 2026
Collaborator
maxhelias
left a comment
There was a problem hiding this comment.
Awesome! Just a few quick comments — otherwise I'm ok to merge this after.
maxhelias
approved these changes
Mar 25, 2026
Collaborator
|
Thanks ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
This PR adds two native console commands to transfer files between the local filesystem and configured Flysystem storages:
flysystem:push
flysystem:pull
The commands support interactive prompts for missing arguments.
Motivation:
Applications already configure Flysystem storages through the bundle, but transferring files to or from those storages currently requires ad hoc application code or one-off scripts.
Providing built-in console commands makes common operational tasks easier:
manually pushing files to a configured storage
retrieving files from a storage during development or support operations
scripting simple import/export workflows around existing storage definitions
This keeps the workflow close to the bundle itself and avoids duplicating the same logic in userland code.
What is included:
New console commands
This PR introduces two commands:
flysystem:push to upload a local file to a configured storage
flysystem:pull to download a file from a configured storage to the local filesystem
Both commands rely on the existing configured storage names, so they work directly with the storages already declared in bundle configuration.
Conditional command registration
The commands are only registered when Symfony Console is available.