42 self::FILE_ACCESS_KEY => [
46 self::DIRECTORY_ACCESS_KEY => [
54 $reflection = new \ReflectionObject($adapter);
55 $property = $reflection->getProperty(
"pathSeparator");
56 $property->setAccessible(
true);
57 $property->setValue($adapter,
'/');
65 $filesystem = new \League\Flysystem\Filesystem($adapter);
88 switch ($configLinkBehaviour) {
94 throw new \InvalidArgumentException(
"The supplied value \"$configLinkBehaviour\" is not a valid LocalConfig link behaviour constant.");
117 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.