send response in ajax Controller/AjaxRateItController.php

This commit is contained in:
Carsten Götzinger 2018-02-15 07:08:22 +01:00
parent 25403155b1
commit 4460c9f8bb

View File

@ -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);
}
}