19 declare(strict_types=1);
50 $visibility =
new PortableVisibilityConverter(
58 $adapter =
new LocalFilesystemAdapter(
65 $filesystem = new \League\Flysystem\Filesystem($adapter);
87 return match ($configLinkBehaviour) {
90 default =>
throw new \InvalidArgumentException(
91 "The supplied value \"$configLinkBehaviour\" is not a valid LocalConfig link behaviour constant." 110 if ($code === LOCK_EX) {
113 if ($code === LOCK_SH) {
116 throw new \InvalidArgumentException(
117 "The supplied value \"$code\" is not a valid file lock mode please check your local file storage configurations."
Class ChatMainBarProvider .
const DIRECTORY_ACCESS_KEY
Fly system file access implementation.
getDirectoryAccessPrivate()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
mapConfigLinkToLocalLinks(int $configLinkBehaviour)
Maps a constant of the LocalConfig class into a constant of the Local class.
getDirectoryAccessPublic()
getInstance(LocalConfig $config)
Creates a new instance of the local filesystem adapter used by fly system.
This class is used to configure the local filesystem adapter.
const PUBLIC_ACCESS
Public file visibility.
const SKIP_LINKS
Skip encountered links.
const DISALLOW_LINKS
This is the default behaviour because links violate the root filesystem constraint.
validateFileLockMode(int $code)
Checks if the supplied file lock mode is valid.
The filesystem facade is used internally to satisfy the Filesystem interface because the implementati...