/** * Acquires current action lock. * @return boolean lock acquiring result. */ protected function acquireMutex() { $this->mutex = Instance::ensure($this->mutex, Mutex::className()); return $this->mutex->acquire($this->composeMutexName()); }
/** * @return \yii\mutex\Mutex * @throws \yii\base\InvalidConfigException */ protected function getMutex() { return Instance::ensure($this->mutexID, Mutex::className()); }