40 $this->mapConfigLinkToLocalLinks(
$config->getLinkBehaviour()),
42 self::FILE_ACCESS_KEY => [
43 self::PRIVATE_ACCESS_KEY =>
$config->getFileAccessPrivate(),
44 self::PUBLIC_ACCESS_KEY =>
$config->getFileAccessPublic()
46 self::DIRECTORY_ACCESS_KEY => [
47 self::PRIVATE_ACCESS_KEY =>
$config->getDirectoryAccessPrivate(),
48 self::PUBLIC_ACCESS_KEY =>
$config->getDirectoryAccessPublic()
54 $reflection = new \ReflectionObject(
$adapter);
55 $property = $reflection->getProperty(
"pathSeparator");
56 $property->setAccessible(
true);
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.");
An exception for terminatinating execution or to throw for unit testing.
const SKIP_LINKS
Skip encountered links.
const DISALLOW_LINKS
This is the default behaviour because links violate the root filesystem constraint.
Class FlySystemDirectoryAccess.
Class FlySystemFileAccess.
Class FlySystemFileStreamAccess.
Class FlySystemLocalFilesystemFactory.
const DIRECTORY_ACCESS_KEY
validateFileLockMode($code)
Checks if the supplied file lock mode is valid.
getInstance(LocalConfig $config)
Creates a new instance of the local filesystem adapter used by fly system.
mapConfigLinkToLocalLinks($configLinkBehaviour)
Maps a constant of the LocalConfig class into a constant of the Local class.