-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[AssetMapper] Add a Filesystem abstraction #50221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I believe the filesystem is only used for writing in the 1 referenced place: AssetMapperCompileCommand If someone is interested, a Who wants to create this? It's easy now, as we don't yet need to worry about changing constructor arguments of |
It looks not so good to do right now. We need kinda a virtual filesystem. But this interface expects that you return a absolute path: symfony/src/Symfony/Component/AssetMapper/Path/PublicAssetsPathResolverInterface.php Line 24 in 53e297d
Do we deprecate that and make an generic filesystem interface or what would be the idea? |
Description
Right now the AssetMapper command directly writes into the public folder.
It would be nice if there would be an abstraction to the Filesystem so I could directly use Flysystem and upload it to S3/whatever. A workaround could be to let it copy to an temporary directory and from there to S3 (assuming the public folder is read-only).
Example
No response
The text was updated successfully, but these errors were encountered: