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.
1 parent 860ef29 commit cc4f92aCopy full SHA for cc4f92a
README.md
@@ -81,6 +81,25 @@ class Foo extends Command
81
82
```
83
84
+## Advanced
85
+
86
+Sometimes it is useful to set common mutex for a several commands. You can easily achieve this by setting them the same mutex name.
87
+By default, mutex name is generated based on a command's name and arguments. Override `getMutexName` method to change this:
88
+```php
89
+class Foo extends Command
90
+{
91
+ use WithoutOverlapping;
92
93
+ public function getMutexName()
94
+ {
95
+ $foo = $this->argument('foo');
96
+ return "icmutex-anything-you-need-here-{$foo}";
97
+ }
98
99
+ // ...
100
+}
101
+```
102
103
## Troubleshooting
104
105
#### Trait included, but nothing happens?
0 commit comments