public function flushDbAction($id)
    {
        try {
            $this->getWorker()->flushDB($id);
            
            $this->get('session')->getFlashBag()->add('success', 'Flush DB on '.$id.' executed successfully');
        }catch(\Exception $e) {
            $this->get('session')->getFlashBag()->add('success', 'Une erreur s\'est produite : '.$e->getMessage());
        }
        
        return new RedirectResponse($this->generateUrl('ringo_php_redmon'));
    }
public function flushDbAction($id)
    {
        try {
            $this->getWorker()->flushDB($id);
            
            $this->get('session')->getFlashBag()->add('success', 'Flush DB on '.$id.' executed successfully');
        }catch(\Exception $e) {
            $this->get('session')->getFlashBag()->add('success', 'Une erreur s\'est produite : '.$e->getMessage());
        }
        
        return new RedirectResponse($this->generateUrl('ringo_php_redmon'));
    }
public function flushDbAction ( $ id ) { try { $ this -> getWorker ( ) -> flushDB ( $ id ) ; $ this -> get ( 'session' ) -> getFlashBag ( ) -> add ( 'success' , 'Flush DB on ' . $ id . ' executed successfully' ) ; } catch ( \ Exception $ e ) { $ this -> get ( 'session' ) -> getFlashBag ( ) -> add ( 'success' , 'Une erreur s\'est produite : ' . $ e -> getMessage ( ) ) ; } return new RedirectResponse ( $ this -> generateUrl ( 'ringo_php_redmon' ) ) ; }
Call flush DB command for the current instance and the current database

@param int $id Database index
@return \Symfony\Component\HttpFoundation\RedirectResponse
Call flush DB command for the current instance and the current database