Skip to content

Instantly share code, notes, and snippets.

@brexis
Created July 5, 2014 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brexis/9ba20cf00de19aa8fb78 to your computer and use it in GitHub Desktop.
Save brexis/9ba20cf00de19aa8fb78 to your computer and use it in GitHub Desktop.
Fixe Netbeans console interactive in Symfony >= 2.3
//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);
}
}
...
}
@brexis
Copy link
Author

brexis commented Jul 5, 2014

Bug reference 239750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment