/** * @inheritdoc */ public function run() { if (!empty($this->task) && $this->task instanceof AbstractCompositeTask) { $this->showTasks($this->task->tasks(), null); } else { $this->showTasks($this->command->config, null); } return true; }
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); }