for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Test\TestBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Tpg\ExtjsBundle\Annotation as Extjs;
class TestController extends Controller {
/**
* @Extjs\Direct
*/
public function testAction() {
return new JsonResponse(array('result'=>'test'));
}
public function notApiAction() {
return new JsonResponse(array('result'=>false));
public function test2Action($id) {
return new JsonResponse(array('result'=>$id));
public function testRequestParamAction(Request $request) {
return new JsonResponse(array('result'=>$request->query->get("id")));