Inject MQTTClient in cancel jo api call #155

This commit is contained in:
Kendrick Chan 2018-07-09 16:26:52 +08:00
parent a87bd31c03
commit af45301e98

View file

@ -467,7 +467,7 @@ class RAPIController extends Controller
return $res->getReturnResponse();
}
public function cancelJobOrder(Request $req)
public function cancelJobOrder(Request $req, MQTTClient $mclient)
{
$em = $this->getDoctrine()->getManager();
$required_params = ['jo_id'];