app/Console/Commands/ChatServer.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $command = 'execute';
        Daemon::getInstance()->run(array(
            'daemon_name' => 'mg-chat-server',
            'run'         => $this->onRun(),
            'stop'        => $this->onStop(),
            'pid_file'    => __DIR__ . '/mg-chat-server.pid'
        ), $command);
    }
public function handle ( ) { $ command = 'execute' ; Daemon :: getInstance ( ) -> run ( array ( 'daemon_name' => 'mg-chat-server' , 'run' => $ this -> onRun ( ) , 'stop' => $ this -> onStop ( ) , 'pid_file' => __DIR__ . '/mg-chat-server.pid' ) , $ command ) ; }
Execute the console command.
Execute the console command .
//Deamon igniter