<?php
namespace Plesk\Wappspector;
use League\Flysystem\Filesystem;
use League\Flysystem\Local\LocalFilesystemAdapter;
class FileSystemFactory
{
public function __invoke(string $path): Filesystem
{
$adapter = new LocalFilesystemAdapter($path, null, LOCK_EX, LocalFilesystemAdapter::SKIP_LINKS);
return new Filesystem($adapter);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Command | Folder | 0755 |
|
|
| Helper | Folder | 0755 |
|
|
| MatchResult | Folder | 0755 |
|
|
| Matchers | Folder | 0755 |
|
|
| DIContainer.php | File | 384 B | 0644 |
|
| FileSystemFactory.php | File | 364 B | 0644 |
|
| Wappspector.php | File | 1.01 KB | 0644 |
|
| container.php | File | 1.83 KB | 0644 |
|