falc / flysystemlocalsymlinkplugin Goto Github PK
View Code? Open in Web Editor NEWLocal symlink plugin for Flysystem.
License: MIT License
Local symlink plugin for Flysystem.
License: MIT License
i do composer update
and get:
The package (falc/flysystem-local-symlink-plugin) is not available in a stable-enough version according to your minimum-stability setting
http://php.net/manual/en/function.symlink.php
bool symlink ( string $target , string $link )
in your solution
public function handle($symlink, $target)
{
return symlink($target, $symlink);
}
Why you change method interface? $target
expected as first argument.
Not sure if this is a plugin issue, Flysystem issue, or a coding issue but it seems that the $target and $symlink passed into handle() does not include the $root when setting up the LocalAdaptor. So, the symlink fails when the service utilizing the specific Flysystem service that is set with a root other than /. Thus the benefit of using the plugin is lost if I have to pass the root to the service anyway when I can just use symlink().
Thoughts? I'm hoping it's just a coding issue on my part.
in your composer.json:
"require": {
"league/flysystem": "0.5.*"
},
last flysystem release: 0.3.0 (https://github.com/thephpleague/flysystem/releases)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.