src/ProcessManager.php
protected function commandReload(array $data, ConnectionInterface $conn)
    {
        // remove nasty info about worker's bootstrap fail
        $conn->removeAllListeners('close');

        if ($this->output->isVeryVerbose()) {
            $conn->on('close', function () {
                $this->output->writeln('Reload command requested');
            });
        }

        $conn->end(json_encode([]));

        $this->reloadSlaves();
    }
protected function commandReload(array $data, ConnectionInterface $conn)
    {
        // remove nasty info about worker's bootstrap fail
        $conn->removeAllListeners('close');

        if ($this->output->isVeryVerbose()) {
            $conn->on('close', function () {
                $this->output->writeln('Reload command requested');
            });
        }

        $conn->end(json_encode([]));

        $this->reloadSlaves();
    }
protected function commandReload ( array $ data , ConnectionInterface $ conn ) { // remove nasty info about worker's bootstrap fail $ conn -> removeAllListeners ( 'close' ) ; if ( $ this -> output -> isVeryVerbose ( ) ) { $ conn -> on ( 'close' , function ( ) { $ this -> output -> writeln ( 'Reload command requested' ) ; } ) ; } $ conn -> end ( json_encode ( [ ] ) ) ; $ this -> reloadSlaves ( ) ; }
A slave sent a `reload` command.

@param array      $data
@param ConnectionInterface $conn
A slave sent a reload command .