Pimcore\Model\Tool\Lock::lock PHP Method

lock() public static method

public static lock ( string $key ) : boolean
$key string
return boolean
    public static function lock($key)
    {
        $instance = self::getInstance();
        return $instance->getDao()->lock($key);
    }

Usage Example

Example #1
0
 /**
  * create lock file
  * @return void
  */
 public function lock()
 {
     Tool\Lock::lock($this->getLockKey());
 }
All Usage Examples Of Pimcore\Model\Tool\Lock::lock