/** * {@inheritdoc} */ public function getDescriptors() { if ($this->disableOutput) { $nullstream = fopen('/dev/null', 'c'); return array(array('pipe', 'r'), $nullstream, $nullstream); } if ($this->ttyMode) { return array(array('file', '/dev/tty', 'r'), array('file', '/dev/tty', 'w'), array('file', '/dev/tty', 'w')); } if ($this->ptyMode && Symfony_Process_Process::isPtySupported()) { return array(array('pty'), array('pty'), array('pty')); } return array(array('pipe', 'r'), array('pipe', 'w'), array('pipe', 'w')); }