Exemplo n.º 1
0
 public static function configureHost(NetConfig &$config, LogInterface $log)
 {
     do {
         try {
             $config->setHost(new Host(Cmd::readWithDefault('host>', $config->getHost(), $log)));
         } catch (\Exception $e) {
             $log->error($e->getMessage());
         }
     } while (!$config->getHost());
 }