send response in ajax Controller/AjaxRateItController.php
This commit is contained in:
parent
25403155b1
commit
4460c9f8bb
@ -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…
Reference in New Issue
Block a user