public static function configureName(NetConfig &$config, LogInterface $log) { do { try { $config->setName(Cmd::readWithDefault('name>', $config->getName(), $log)); } catch (\Exception $e) { $log->error($e->getMessage()); } } while (!$config->getName()); }