public function indexAction()
    {
        $instance = $this->getCurrentInstance();
        if($instance) {
            
            $worker = $this->getWorker();
            // Worker can be undefined if server went away
            // For the current instance or if there is no instance selected
            if($worker) {
                return $this->render(
                    $this->getTemplatePath().'index.html.twig',
                    array(
                        'instance' => $worker->getInstance(),
                        'infos'    => $worker->getInfos(),
                        'slowLogs'  => $worker->getSlowLogs(),
                        'keyspace'  => $worker->getKeyspace()
                    )
                );
            }
        }
        
        return new RedirectResponse($this->generateUrl('ringo_php_redmon_instances'));
    }
public function indexAction()
    {
        $instance = $this->getCurrentInstance();
        if($instance) {
            
            $worker = $this->getWorker();
            // Worker can be undefined if server went away
            // For the current instance or if there is no instance selected
            if($worker) {
                return $this->render(
                    $this->getTemplatePath().'index.html.twig',
                    array(
                        'instance' => $worker->getInstance(),
                        'infos'    => $worker->getInfos(),
                        'slowLogs'  => $worker->getSlowLogs(),
                        'keyspace'  => $worker->getKeyspace()
                    )
                );
            }
        }
        
        return new RedirectResponse($this->generateUrl('ringo_php_redmon_instances'));
    }
public function indexAction ( ) { $ instance = $ this -> getCurrentInstance ( ) ; if ( $ instance ) { $ worker = $ this -> getWorker ( ) ; // Worker can be undefined if server went away // For the current instance or if there is no instance selected if ( $ worker ) { return $ this -> render ( $ this -> getTemplatePath ( ) . 'index.html.twig' , array ( 'instance' => $ worker -> getInstance ( ) , 'infos' => $ worker -> getInfos ( ) , 'slowLogs' => $ worker -> getSlowLogs ( ) , 'keyspace' => $ worker -> getKeyspace ( ) ) ) ; } } return new RedirectResponse ( $ this -> generateUrl ( 'ringo_php_redmon_instances' ) ) ; }
Render choose action or dashboard action

@return mixed
Render choose action or dashboard action