/** * @param array $commands */ public function saveSchedulerCommands(array $commands) { $dir = $this->taskConfig->getCommandsDir(); $type = $this->taskConfig->type; $res = self::createDir($dir); if (!$res) { return; } $path = "{$dir}/{$type}.cmd"; KScheduleHelperManager::saveCommands($path, $commands); }