Created
July 5, 2014 00:06
-
-
Save brexis/9ba20cf00de19aa8fb78 to your computer and use it in GitHub Desktop.
Fixe Netbeans console interactive in Symfony >= 2.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//File vendor/symfony/symfony/src/Symfony/Component/Console | |
<?php | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <fabien@symfony.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ | |
namespace Symfony\Component\Console; | |
... | |
//line ~ 846 | |
protected function configureIO(InputInterface $input, OutputInterface $output) | |
{ | |
... | |
if (true === $input->hasParameterOption(array('--no-interaction', '-n'))) { | |
$input->setInteractive(false); | |
} elseif (function_exists('posix_isatty') && $this->getHelperSet()->has('dialog')) { | |
$inputStream = $this->getHelperSet()->get('dialog')->getInputStream(); | |
if (!@posix_isatty($inputStream)) { | |
$input->setInteractive(false); // Change this to true : $input->setInteractive(true); | |
} | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug reference 239750