$this->input = newArrayInput($input); // Use an in-memory input stream even if no inputs are set so that QuestionHelper::ask() does not rely on the blocking STDIN.
$this->input->setStream(self::createStream($this->inputs));
return$this->statusCode = $this->application->run($this->input, $this->output); }finally{ // SHELL_VERBOSITY is set by Application::configureIO so we need to unset/reset it
return$this->statusCode = $this->application->run($this->input, $this->output); }finally{ // SHELL_VERBOSITY is set by Application::configureIO so we need to unset/reset it
switch($shellVerbosity = (int)getenv('SHELL_VERBOSITY')){ case -1: $output->setVerbosity(OutputInterface::VERBOSITY_QUIET); break; case 1: $output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE); break; case 2: $output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE);
switch($shellVerbosity = (int)getenv('SHELL_VERBOSITY')){ case -1: $output->setVerbosity(OutputInterface::VERBOSITY_QUIET); break; case 1: $output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE); break; case 2: $output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE);
$this->input = newArrayInput($input); // Use an in-memory input stream even if no inputs are set so that QuestionHelper::ask() does not rely on the blocking STDIN.
$this->input->setStream(self::createStream($this->inputs));
publicfunctiontestSetGetInteractive() { $input = newArrayInput([]); $this->assertTrue($input->isInteractive(), '->isInteractive() returns whether the input should be interactive or not'); $input->setInteractive(false); $this->assertFalse($input->isInteractive(), '->setInteractive() changes the interactive flag'); }