2 declare(strict_types=1);
43 self::FILE_ACCESS_KEY => [
47 self::DIRECTORY_ACCESS_KEY => [
55 $reflection = new \ReflectionObject($adapter);
56 $property = $reflection->getProperty(
"pathSeparator");
57 $property->setAccessible(
true);
58 $property->setValue($adapter,
'/');
66 $filesystem = new \League\Flysystem\Filesystem($adapter);
89 switch ($configLinkBehaviour) {
95 throw new \InvalidArgumentException(
"The supplied value \"$configLinkBehaviour\" is not a valid LocalConfig link behaviour constant.");
118 throw new \InvalidArgumentException(
"The supplied value \"$code\" is not a valid file lock mode please check your local file storage configurations.");
const DIRECTORY_ACCESS_KEY
Class FlySystemFileAccess.
mapConfigLinkToLocalLinks($configLinkBehaviour)
Maps a constant of the LocalConfig class into a constant of the Local class.
setPathPrefix($prefix)
Set the path prefix.
getDirectoryAccessPrivate()
Class FlySystemFileStreamAccess.
Class FlySystemLocalFilesystemFactory.
getDirectoryAccessPublic()
getInstance(LocalConfig $config)
Creates a new instance of the local filesystem adapter used by fly system.
Class FlySystemDirectoryAccess.
const SKIP_LINKS
Skip encountered links.
const DISALLOW_LINKS
This is the default behaviour because links violate the root filesystem constraint.
validateFileLockMode($code)
Checks if the supplied file lock mode is valid.