From c05b7188134083830dc0a7f9f7983746aa9c67d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Nikolaou?= Date: Sat, 6 Apr 2019 00:45:11 +0300 Subject: [PATCH] Allow lock to be configured in local filesystems --- src/Illuminate/Filesystem/FilesystemManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Filesystem/FilesystemManager.php b/src/Illuminate/Filesystem/FilesystemManager.php index 7897352c89b2..449216a62da8 100644 --- a/src/Illuminate/Filesystem/FilesystemManager.php +++ b/src/Illuminate/Filesystem/FilesystemManager.php @@ -159,8 +159,10 @@ public function createLocalDriver(array $config) ? LocalAdapter::SKIP_LINKS : LocalAdapter::DISALLOW_LINKS; + $lock = $config['lock'] ?? LOCK_EX; + return $this->adapt($this->createFlysystem(new LocalAdapter( - $config['root'], LOCK_EX, $links, $permissions + $config['root'], $lock, $links, $permissions ), $config)); }