protected function init() { // get real path for tasks locations $this->taskLocation = realpath(dirname(__FILE__) . '/tasks/') . DS; if (!is_dir($this->taskLocation)) { $this->console->error(sprintf('Tasks directory not found (%s).', $this->taskLocation)); } return parent::init(); }