Код: Выделить всё
$adapter = new League\Flysystem\Adapter\Local('/path/to/root');
$filesystem = new League\Flysystem\Filesystem($adapter);
echo $adapter->getPathPrefix(); // Outputs "/path/to/root"
Код: Выделить всё
use League\Flysystem\FilesystemOperator;
use League\Flysystem\Local\LocalFilesystemAdapter;
$adapter = new LocalFilesystemAdapter('/path/to/root');
$filesystem = new Filesystem($adapter);
< /code>
Мне нужно получить корневой каталог (/path/to/root
Как я могу справиться с этим таким образом, чтобы сохранить код в чистоте и уважает новые принципы дизайна Flysystem? Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/795 ... system-3-x