public function init() { parent::init(); if (empty($this->cwd)) { $this->cwd = $this->command->configReader->basePath; } }
public function init() { parent::init(); if (empty($this->name)) { throw new \InvalidArgumentException('Empty lock name.'); } if (empty($this->lockPath)) { $this->lockPath = sys_get_temp_dir(); } $this->lockPath = $this->getAbsolutePath($this->lockPath); }