Final Class Yiisoft\Mutex\File\FileMutexFactory
| Inheritance | Yiisoft\Mutex\File\FileMutexFactory » Yiisoft\Mutex\MutexFactory |
|---|
Allows creating file mutex objects.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Mutex\File\FileMutexFactory | |
| create() | Yiisoft\Mutex\File\FileMutexFactory |
Method Details
| public __construct( string $mutexPath, integer $directoryMode = 0775, integer|null $fileMode = null ): mixed | ||
| $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 chmod() function. No umask will be applied. Defaults to 0775, meaning the directory is read-writable by owner and group, but read-only for other users. |
| $fileMode | integer|null |
The permission to be set for newly created mutex files. This value will be used by PHP chmod() function. No umask will be applied. |
public function __construct(string $mutexPath, int $directoryMode = 0775, ?int $fileMode = null)
{
$this->mutexPath = $mutexPath;
$this->directoryMode = $directoryMode;
$this->fileMode = $fileMode;
}
Signup or Login in order to comment.