Commit e007afa2 by Frédéric

Test step

parent 684a705f
......@@ -118,6 +118,16 @@ class FluxController extends BackendBase
*/
public function sync(Request $request)
{
$step = $request->get('step');
if(!$step) {
$step = 1;
}
if($step > 4 ){
return $this->redirectToRoute('tourinsoft_admin_flux_index');
}
$flux = $this->assertFLux($request->get('id'));
$sync = new Synchronisation($this->config, $this->application, $flux);
......@@ -126,7 +136,8 @@ class FluxController extends BackendBase
$flux->setSynchronizedAt(new \DateTime());
$this->getRepository(Flux::class)->update($flux);
return $this->redirectToRoute('tourinsoft_admin_flux_index');
return $this->redirectToRoute('tourinsoft_admin_flux_sync', ['id' => $request->get('id'), 'step' => $step+1]);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment