public function reload()
    {
        $server = $this->createServerManager();

        if (!$server->isRunning()) {
            \output()->writeln('<error>The server is not running! cannot reload</error>', true, true);
        }

        \output()->writeln(sprintf('<info>Server %s is reloading</info>', input()->getScript()));

        $reloadTask = input()->hasOpt('t');
        $server->reload($reloadTask);
        \output()->writeln(sprintf('<success>Server %s reload success</success>', input()->getScript()));
    }
public function reload()
    {
        $server = $this->createServerManager();

        if (!$server->isRunning()) {
            \output()->writeln('<error>The server is not running! cannot reload</error>', true, true);
        }

        \output()->writeln(sprintf('<info>Server %s is reloading</info>', input()->getScript()));

        $reloadTask = input()->hasOpt('t');
        $server->reload($reloadTask);
        \output()->writeln(sprintf('<success>Server %s reload success</success>', input()->getScript()));
    }
public function reload ( ) { $ server = $ this -> createServerManager ( ) ; if ( ! $ server -> isRunning ( ) ) { \ output ( ) -> writeln ( '<error>The server is not running! cannot reload</error>' , true , true ) ; } \ output ( ) -> writeln ( sprintf ( '<info>Server %s is reloading</info>' , input ( ) -> getScript ( ) ) ) ; $ reloadTask = input ( ) -> hasOpt ( 't' ) ; $ server -> reload ( $ reloadTask ) ; \ output ( ) -> writeln ( sprintf ( '<success>Server %s reload success</success>' , input ( ) -> getScript ( ) ) ) ; }
Reload worker processes for the running server

@Usage {fullCommand} [-t]
@Options
-t      Only to reload task processes, default to reload worker and task
@Example {fullCommand}
@throws \InvalidArgumentException
@throws \RuntimeException
Reload worker processes for the running server