19declare(strict_types=1);
23use League\Flysystem\Filesystem;
26use League\Flysystem\Local\LocalFilesystemAdapter;
27use League\Flysystem\UnixVisibility\PortableVisibilityConverter;
61 $visibility =
new PortableVisibilityConverter(
68 $adapter =
new LocalFilesystemAdapter(
97 return match ($configLinkBehaviour) {
100 default =>
throw new \InvalidArgumentException(
101 "The supplied value \"$configLinkBehaviour\" is not a valid LocalConfig link behaviour constant."
120 if ($code === LOCK_EX) {
123 if ($code === LOCK_SH) {
126 throw new \InvalidArgumentException(
127 "The supplied value \"$code\" is not a valid file lock mode please check your local file storage configurations."
The filesystem facade is used internally to satisfy the Filesystem interface because the implementati...
This class is used to configure the local filesystem adapter.
getDirectoryAccessPublic()
getDirectoryAccessPrivate()
Fly system file access implementation.
const DIRECTORY_ACCESS_KEY
getInstance(LocalConfig $config)
Creates a new instance of the local filesystem adapter used by fly system.
mapConfigLinkToLocalLinks(int $configLinkBehaviour)
Maps a constant of the LocalConfig class into a constant of the Local class.
validateFileLockMode(int $code)
Checks if the supplied file lock mode is valid.
The filesystem interface provides the public interface for the Filesystem service API consumer.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...