Webmozart\Console\Api\Config\ApplicationConfig::setTerminateAfterRun PHP Method

setTerminateAfterRun() public method

Sets whether to terminate the PHP process after running a command.
See also: isTerminatedAfterRun()
public setTerminateAfterRun ( boolean $terminate ) : static
$terminate boolean Whether to terminate the PHP process after running a command.
return static The current instance.
    public function setTerminateAfterRun($terminate)
    {
        Assert::boolean($terminate);
        $this->terminateAfterRun = $terminate;
        return $this;
    }

Usage Example

 protected function setUp()
 {
     $this->config = new ApplicationConfig();
     $this->config->setCatchExceptions(false);
     $this->config->setTerminateAfterRun(false);
     $this->config->setIOFactory(function ($application, $args, $inputStream, $outputStream, $errorStream) {
         return new IO(new Input($inputStream), new Output($outputStream), new Output($errorStream));
     });
 }
All Usage Examples Of Webmozart\Console\Api\Config\ApplicationConfig::setTerminateAfterRun