Fix missing param for new mqtt client on assigning hub and rider #730
This commit is contained in:
parent
4f06c02bd4
commit
ea60fa081c
2 changed files with 21 additions and 4 deletions
17
src/Controller/InsuranceController.php
Normal file
17
src/Controller/InsuranceController.php
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Controller;
|
||||||
|
|
||||||
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
|
|
||||||
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||||
|
|
||||||
|
class InsuranceController extends Controller
|
||||||
|
{
|
||||||
|
public function listen(Request $req, EntityManagerInterface $em)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -540,7 +540,7 @@ class JobOrderController extends Controller
|
||||||
return $this->render($template, $params);
|
return $this->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.');
|
$this->denyAccessUnlessGranted('jo_open.list', null, 'No access.');
|
||||||
|
|
||||||
|
|
@ -549,7 +549,7 @@ class JobOrderController extends Controller
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$error_array = $jo_handler->setHub($req, $id, $mclient);
|
$error_array = $jo_handler->setHub($req, $id, $mclient, $mclientv2);
|
||||||
}
|
}
|
||||||
catch (NotFoundHttpException $e)
|
catch (NotFoundHttpException $e)
|
||||||
{
|
{
|
||||||
|
|
@ -598,7 +598,7 @@ class JobOrderController extends Controller
|
||||||
return $this->render($template, $params);
|
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.');
|
$this->denyAccessUnlessGranted('jo_open.list', null, 'No access.');
|
||||||
|
|
||||||
|
|
@ -607,7 +607,7 @@ class JobOrderController extends Controller
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$error_array = $jo_handler->setRider($req, $id, $mclient);
|
$error_array = $jo_handler->setRider($req, $id, $mclient, $mclientv2);
|
||||||
}
|
}
|
||||||
catch (NotFoundHttpException $e)
|
catch (NotFoundHttpException $e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue