Skip to content

Instantly share code, notes, and snippets.

@brexis
Created July 5, 2014 00:06
Show Gist options
  • Select an option

  • Save brexis/9ba20cf00de19aa8fb78 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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