We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getMutexFileStorage
1 parent b053073 commit b5adea1Copy full SHA for b5adea1
src/Mutex.php
@@ -48,7 +48,7 @@ public function getStrategy()
48
49
case 'file':
50
default:
51
- return new FlockLock(storage_path('app'));
+ return new FlockLock($this->command->getMutexFileStorage());
52
}
53
54
src/WithoutOverlapping.php
@@ -52,6 +52,11 @@ public function getMutexName()
return "icmutex-{$name}-" . md5($arguments);
55
+ public function getMutexFileStorage()
56
+ {
57
+ return storage_path('app');
58
+ }
59
+
60
public function releaseMutexLock(Mutex $mutex)
61
{
62
$mutex->releaseLock();
0 commit comments