/** * Static method to create process instance by task identifier. Used in special wrapper command to run specified * task and log it's execution. * @param string $id * @param CronService $service application service component * @return self */ public static function createById($id, CronService $service) { $process = new self($service, $id); $process->readInfoFile(true); return $process; }