Browse Source

send response in ajax Controller/AjaxRateItController.php

master
Carsten Götzinger 4 years ago
parent
commit
4460c9f8bb
  1. 4
      src/Controller/AjaxRateItController.php

4
src/Controller/AjaxRateItController.php

@ -10,7 +10,7 @@ namespace cgoIT\rateit\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use cgoIT\rateit\RateIt;
class AjaxRateItController extends Controller {
@ -29,6 +29,8 @@ class AjaxRateItController extends Controller {
$response = $controller->doVote();
$response->send();
return new Response(null);
}
}

Loading…
Cancel
Save