Пример #1
0
 /**
  * Shows Input
  * Linux Only
  * @todo Provide viable alternative for windows
  */
 protected function showInput()
 {
     if (!Console::isRunningOnWindows()) {
         system('stty echo');
     }
 }
Пример #2
0
 /**
  * @todo Move to a CLI Helper Class
  * @todo Make compatible with Windows (stty alternative)
  */
 private function unhideUserInput()
 {
     if (!\yii\helpers\Console::isRunningOnWindows()) {
         system('stty echo');
     }
 }