src/M6Web/Bundle/DaemonBundle/Command/DaemonCommand.php
protected function isLastLoop(): bool
    {
        // Count loop
        if (!is_null($this->getLoopMax()) && ($this->getLoopCount() >= $this->getLoopMax())) {
            $this->requestShutdown();
        }

       // Memory
        if ($this->memoryMax > 0 && memory_get_peak_usage(true) >= $this->memoryMax) {
            $this->dispatchEvent(DaemonEvents::DAEMON_LOOP_MAX_MEMORY_REACHED);
            $this->requestShutdown();
        }

        return $this->isShutdownRequested();
    }
protected function isLastLoop(): bool
    {
        // Count loop
        if (!is_null($this->getLoopMax()) && ($this->getLoopCount() >= $this->getLoopMax())) {
            $this->requestShutdown();
        }

       // Memory
        if ($this->memoryMax > 0 && memory_get_peak_usage(true) >= $this->memoryMax) {
            $this->dispatchEvent(DaemonEvents::DAEMON_LOOP_MAX_MEMORY_REACHED);
            $this->requestShutdown();
        }

        return $this->isShutdownRequested();
    }
protected function isLastLoop ( ) : bool { // Count loop if ( ! is_null ( $ this -> getLoopMax ( ) ) && ( $ this -> getLoopCount ( ) >= $ this -> getLoopMax ( ) ) ) { $ this -> requestShutdown ( ) ; } // Memory if ( $ this -> memoryMax > 0 && memory_get_peak_usage ( true ) >= $ this -> memoryMax ) { $ this -> dispatchEvent ( DaemonEvents :: DAEMON_LOOP_MAX_MEMORY_REACHED ) ; $ this -> requestShutdown ( ) ; } return $ this -> isShutdownRequested ( ) ; }
Return true after the last loop.

@return bool
Return true after the last loop .