Skip to content

Commit b5adea1

Browse files
committed
getMutexFileStorage method added.
1 parent b053073 commit b5adea1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Mutex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getStrategy()
4848

4949
case 'file':
5050
default:
51-
return new FlockLock(storage_path('app'));
51+
return new FlockLock($this->command->getMutexFileStorage());
5252
}
5353
}
5454

src/WithoutOverlapping.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ public function getMutexName()
5252
return "icmutex-{$name}-" . md5($arguments);
5353
}
5454

55+
public function getMutexFileStorage()
56+
{
57+
return storage_path('app');
58+
}
59+
5560
public function releaseMutexLock(Mutex $mutex)
5661
{
5762
$mutex->releaseLock();

0 commit comments

Comments
 (0)