Пример #1
0
 /**
  * @return string
  */
 protected function getLockFile()
 {
     $lockFileDir = $this->filesystem->getDirectoryRead(DirectoryList::VAR_DIR)->getAbsolutePath();
     $lockFile = $lockFileDir . DIRECTORY_SEPARATOR . $this->lockFileName;
     if (!$this->filesystemDriver->isExists($lockFile)) {
         $this->filesystemDriver->filePutContents($lockFile, 0);
     }
     return $lockFile;
 }
Пример #2
0
 /**
  * @return string
  */
 protected function getLockFile()
 {
     $lockFileDir = dirname(dirname(dirname(dirname(__DIR__)))) . DIRECTORY_SEPARATOR . 'var';
     $lockFile = $lockFileDir . DIRECTORY_SEPARATOR . $this->lockFileName;
     if (!$this->filesystem->isExists($lockFile)) {
         $this->filesystem->filePutContents($lockFile, 0);
     }
     return $lockFile;
 }