コード例 #1
0
 /**
  * Get the lock path.
  *
  * @param  InputInterface $input
  *
  * @return null|string
  */
 public function getLockPath(InputInterface $input)
 {
     if ($this->lockName instanceof LockHandler) {
         return 'UNKNOWN';
     }
     if ($this->lockPath !== null) {
         return $this->lockPath;
     }
     if ($this->decoratedCommand instanceof SpecifiesLockPath) {
         return $this->decoratedCommand->getLockPath($input);
     }
     return sys_get_temp_dir();
 }