/** * Set force to true in Cron entity. * * @Route("/config/forcecron/{cron}", name="status_force_cron") */ public function setCronForceAction(Cron $cron) { $cron->setForce(true); $this->getDoctrine()->getManager()->flush(); return $this->redirect($this->generateUrl('status')); }