Controller/DefaultController.php
public function wakeupAction($id)
    {
        $cm = new CronManager();
        $crons = $cm->get();
        $this->addFlashFromCronManager($cm);
        $crons[$id]->setSuspended(false);
        $cm->write();
        $this->addFlashFromCronManager($cm);

        return $this->redirect($this->generateUrl('BCCCronManagerBundle_index'));
    }
public function wakeupAction($id)
    {
        $cm = new CronManager();
        $crons = $cm->get();
        $this->addFlashFromCronManager($cm);
        $crons[$id]->setSuspended(false);
        $cm->write();
        $this->addFlashFromCronManager($cm);

        return $this->redirect($this->generateUrl('BCCCronManagerBundle_index'));
    }
public function wakeupAction ( $ id ) { $ cm = new CronManager ( ) ; $ crons = $ cm -> get ( ) ; $ this -> addFlashFromCronManager ( $ cm ) ; $ crons [ $ id ] -> setSuspended ( false ) ; $ cm -> write ( ) ; $ this -> addFlashFromCronManager ( $ cm ) ; return $ this -> redirect ( $ this -> generateUrl ( 'BCCCronManagerBundle_index' ) ) ; }
Wake up a cron from the cron table

@param $id int The line of the cron in the cron table
@return RedirectResponse
Wake up a cron from the cron table