public function restart($message = 'Restart', $context = [])
    {
        // Check if method was called only with $context
        if (is_array($message)) {
            $context = $message;
            $message = 'Restart';
        }

        // Clear data and start (again)
        $this->clear();
        $this->start($message, $context);
    }
public function restart($message = 'Restart', $context = [])
    {
        // Check if method was called only with $context
        if (is_array($message)) {
            $context = $message;
            $message = 'Restart';
        }

        // Clear data and start (again)
        $this->clear();
        $this->start($message, $context);
    }
public function restart ( $ message = 'Restart' , $ context = [ ] ) { // Check if method was called only with $context if ( is_array ( $ message ) ) { $ context = $ message ; $ message = 'Restart' ; } // Clear data and start (again) $ this -> clear ( ) ; $ this -> start ( $ message , $ context ) ; }
Clear and start profile again.

@param string $message [optional]
@param array  $context [optional]
Clear and start profile again .