diff --git a/src/Controller/InsuranceController.php b/src/Controller/InsuranceController.php new file mode 100644 index 00000000..e65c2c86 --- /dev/null +++ b/src/Controller/InsuranceController.php @@ -0,0 +1,17 @@ +render($template, $params); } - public function openHubSubmit(Request $req, JobOrderHandlerInterface $jo_handler, MQTTClient $mclient, $id) + public function openHubSubmit(Request $req, JobOrderHandlerInterface $jo_handler, MQTTClient $mclient, MQTTClientApiv2 $mclientv2, $id) { $this->denyAccessUnlessGranted('jo_open.list', null, 'No access.'); @@ -549,7 +549,7 @@ class JobOrderController extends Controller try { - $error_array = $jo_handler->setHub($req, $id, $mclient); + $error_array = $jo_handler->setHub($req, $id, $mclient, $mclientv2); } catch (NotFoundHttpException $e) { @@ -598,7 +598,7 @@ class JobOrderController extends Controller return $this->render($template, $params); } - public function openRiderSubmit(Request $req, JobOrderHandlerInterface $jo_handler, MQTTClient $mclient, $id) + public function openRiderSubmit(Request $req, JobOrderHandlerInterface $jo_handler, MQTTClient $mclient, MQTTClientApiv2 $mclientv2, $id) { $this->denyAccessUnlessGranted('jo_open.list', null, 'No access.'); @@ -607,7 +607,7 @@ class JobOrderController extends Controller try { - $error_array = $jo_handler->setRider($req, $id, $mclient); + $error_array = $jo_handler->setRider($req, $id, $mclient, $mclientv2); } catch (NotFoundHttpException $e) {