Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@brexis 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