src/Viper/Daemon/Router.php
public function exec() : void
    {
        $this -> actionLog('Script successfully entered');

        $sentence = $this -> storage['sentenced'];
        $response = NULL;
        if (method_exists($this, $sentence))
            $response = $this -> $sentence();
        else $this -> errorLog('Unknown method '.$sentence);

        if ($response)
            $this -> actionLog('Received data: '.$response);

        $this -> setMemory(memory_get_usage(TRUE));
        $this -> actionLog('Script successfully completed, action: '.$sentence);
    }
public function exec() : void
    {
        $this -> actionLog('Script successfully entered');

        $sentence = $this -> storage['sentenced'];
        $response = NULL;
        if (method_exists($this, $sentence))
            $response = $this -> $sentence();
        else $this -> errorLog('Unknown method '.$sentence);

        if ($response)
            $this -> actionLog('Received data: '.$response);

        $this -> setMemory(memory_get_usage(TRUE));
        $this -> actionLog('Script successfully completed, action: '.$sentence);
    }
public function exec ( ) : void { $ this -> actionLog ( 'Script successfully entered' ) ; $ sentence = $ this -> storage [ 'sentenced' ] ; $ response = NULL ; if ( method_exists ( $ this , $ sentence ) ) $ response = $ this -> $ sentence ( ) ; else $ this -> errorLog ( 'Unknown method ' . $ sentence ) ; if ( $ response ) $ this -> actionLog ( 'Received data: ' . $ response ) ; $ this -> setMemory ( memory_get_usage ( TRUE ) ) ; $ this -> actionLog ( 'Script successfully completed, action: ' . $ sentence ) ; }
Makes preparations for run method
Also stores memory used by daemon to be recovered
Makes preparations for run method Also stores memory used by daemon to be recovered