Skip to content

runexes/flynax-component-filesystem

Repository files navigation

Flynax\Component\Filesystem

Based on Symfony\Filesystem

How to use in my plugin?

Add to your composer.json

"repositories": [
  {
    "type": "vcs",
    "url": "https://gitlab.com/flynax/components/filesystem"
  }
],
"require": {
    "flynax/filesystem": "1.0.1"
}

Example how to copy vendor/ directory from upload directory to plugin root

/**
 * @version X.X.X
 */
public function updateXXX()
{
    require_once RL_UPLOAD . '<pluginKey>/vendor/autoload.php';
    $filesystem = new Flynax\Component\Filesystem();
    $filesystem->copyTo(RL_UPLOAD . '<pluginKey>/vendor', RL_PLUGINS . '<pluginKey>/vendor');
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages