M6Web\Bundle\PhpProcessManagerBundle\Command\HttpProcessCommand::shouldExitCommand PHP Method

shouldExitCommand() protected method

determine if the event loop should be stopped
protected shouldExitCommand ( Symfony\Component\Console\Output\OutputInterface $output ) : boolean
$output Symfony\Component\Console\Output\OutputInterface
return boolean
    protected function shouldExitCommand(OutputInterface $output)
    {
        if ($this->memoryMax > 0 && memory_get_peak_usage(true) >= $this->memoryMax) {
            $this->writeln($output, 'Memory max of ' . $this->memoryMax . ' bytes exideed');
            return true;
        }
        return false;
    }