src/Process/Signals.php
public function handleExit(\Closure $callback)
    {
        // You cannot assign a signal handler for SIGKILL

        $this->append(SIGHUP, $callback);
        $this->append(SIGINT, $callback);
        $this->append(SIGQUIT, $callback);
        $this->append(SIGTERM, $callback);
    }
public function handleExit(\Closure $callback)
    {
        // You cannot assign a signal handler for SIGKILL

        $this->append(SIGHUP, $callback);
        $this->append(SIGINT, $callback);
        $this->append(SIGQUIT, $callback);
        $this->append(SIGTERM, $callback);
    }
public function handleExit ( \ Closure $ callback ) { // You cannot assign a signal handler for SIGKILL $ this -> append ( SIGHUP , $ callback ) ; $ this -> append ( SIGINT , $ callback ) ; $ this -> append ( SIGQUIT , $ callback ) ; $ this -> append ( SIGTERM , $ callback ) ; }
Handle application exit signals

@param \Closure $callback callback to run after the signal is received

@return void
Handle application exit signals