Final Class Yiisoft\Mutex\File\FileMutexFactory
| Inheritance | Yiisoft\ |
|---|
Allows creating file mutex objects.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| create() | Yiisoft\ |
Method Details
| public mixed __construct ( string $mutexPath, integer $directoryMode = 0775, integer|null $fileMode = null ) | ||
| $mutexPath | string |
The directory to store mutex files. |
| $directoryMode | integer |
The permission to be set for newly created directories.
This value will be used by PHP {@see \ |
| $fileMode | integer|null |
The permission to be set for newly created mutex files.
This value will be used by PHP {@see \ |
public function __construct(string $mutexPath, int $directoryMode = 0775, ?int $fileMode = null)
{
$this->mutexPath = $mutexPath;
$this->directoryMode = $directoryMode;
$this->fileMode = $fileMode;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.