Skip to content

Commit 4962892

Browse files
committed
ICM: Readme minor fixes.
1 parent 398472f commit 4962892

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Prevents overlapping for Laravel console commands.
4545
```php
4646
use Illuminated\Console\WithoutOverlapping;
4747
48-
class MyProtectedCommand extends Command
48+
class ExampleCommand extends Command
4949
{
5050
use WithoutOverlapping;
5151
@@ -68,7 +68,7 @@ If your application is more complex and, for example, is deployed on a several n
6868
You can change mutex strategy by specifying `$mutexStrategy` field:
6969

7070
```php
71-
class MyProtectedCommand extends Command
71+
class ExampleCommand extends Command
7272
{
7373
use WithoutOverlapping;
7474
@@ -81,7 +81,7 @@ class MyProtectedCommand extends Command
8181
Or by using `setMutexStrategy` method:
8282

8383
```php
84-
class MyProtectedCommand extends Command
84+
class ExampleCommand extends Command
8585
{
8686
use WithoutOverlapping;
8787
@@ -106,7 +106,7 @@ timeout for a mutex, so it can wait for another command to finish it's execution
106106
You can change mutex timeout by specifying `$mutexTimeout` field:
107107
108108
```php
109-
class MyProtectedCommand extends Command
109+
class ExampleCommand extends Command
110110
{
111111
use WithoutOverlapping;
112112
@@ -119,7 +119,7 @@ class MyProtectedCommand extends Command
119119
Or by using `setMutexTimeout` method:
120120
121121
```php
122-
class MyProtectedCommand extends Command
122+
class ExampleCommand extends Command
123123
{
124124
use WithoutOverlapping;
125125
@@ -146,7 +146,7 @@ Sometimes it is useful to set common mutex for a several commands. You can easil
146146
By default, mutex name is generated based on a command's name and arguments. To change this, just override `getMutexName` method in your command:
147147
148148
```php
149-
class MyProtectedCommand extends Command
149+
class ExampleCommand extends Command
150150
{
151151
use WithoutOverlapping;
152152
@@ -180,7 +180,7 @@ trait WithoutOverlapping
180180
If your command is overriding `initialize` method too, then you should call `initializeMutex` method by yourself:
181181
182182
```php
183-
class MyProtectedCommand extends Command
183+
class ExampleCommand extends Command
184184
{
185185
use WithoutOverlapping;
186186
@@ -203,7 +203,7 @@ If you're using some other cool `illuminated/console-%` packages, well, then you
203203
For example, if you're trying to build [loggable command](https://github.com/dmitry-ivanov/laravel-console-logger), which is protected against overlapping:
204204
205205
```php
206-
class MyProtectedCommand extends Command
206+
class ExampleCommand extends Command
207207
{
208208
use Loggable;
209209
use WithoutOverlapping;
@@ -218,7 +218,7 @@ You'll get fatal error, the "traits conflict", because both of these traits are
218218
But don't worry, solution is very simple. Override `initialize` method by yourself, and initialize traits in required order:
219219
220220
```php
221-
class MyProtectedCommand extends Command
221+
class ExampleCommand extends Command
222222
{
223223
use Loggable;
224224
use WithoutOverlapping;

0 commit comments

Comments
 (0)