getServiceByType($type); if ($request->get('fullSync')) { $synchronizer->setFullSync(true); } $synchronizer->sync(); }); } }