Webmozart\Console\Api\Config\ApplicationConfig::setTerminateAfterRun PHP Метод

setTerminateAfterRun() публичный Метод

Sets whether to terminate the PHP process after running a command.
См. также: isTerminatedAfterRun()
public setTerminateAfterRun ( boolean $terminate ) : static
$terminate boolean Whether to terminate the PHP process after running a command.
Результат static The current instance.
    public function setTerminateAfterRun($terminate)
    {
        Assert::boolean($terminate);
        $this->terminateAfterRun = $terminate;
        return $this;
    }

Usage Example

Пример #1
0
 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