original_string: public function listJsonAction()
      {
          $em = $this->getDoctrine()->getManager();
          $adminManager = $this->get('admin_manager');
          /** @var \AdminBundle\Services\DataTables\JsonList $jsonList */
          $jsonList = $this->get('json_list');
          $jsonList->setRepository($em->getRepository('EcommerceBundle:Product'));
          $user = $this->container->get('security.token_storage')->getToken()->getUser();
          if ($user->isGranted('ROLE_USER')) {
              $jsonList->setActor($user);
          }
          
          $response = $jsonList->get();
  
          return new JsonResponse($response);
      }
code: public function listJsonAction()
      {
          $em = $this->getDoctrine()->getManager();
          $adminManager = $this->get('admin_manager');
          /** @var \AdminBundle\Services\DataTables\JsonList $jsonList */
          $jsonList = $this->get('json_list');
          $jsonList->setRepository($em->getRepository('EcommerceBundle:Product'));
          $user = $this->container->get('security.token_storage')->getToken()->getUser();
          if ($user->isGranted('ROLE_USER')) {
              $jsonList->setActor($user);
          }
          
          $response = $jsonList->get();
  
          return new JsonResponse($response);
      }
code_tokens: public function listJsonAction ( ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ adminManager = $ this -> get ( 'admin_manager' ) ; /** @var \AdminBundle\Services\DataTables\JsonList $jsonList */ $ jsonList = $ this -> get ( 'json_list' ) ; $ jsonList -> setRepository ( $ em -> getRepository ( 'EcommerceBundle:Product' ) ) ; $ user = $ this -> container -> get ( 'security.token_storage' ) -> getToken ( ) -> getUser ( ) ; if ( $ user -> isGranted ( 'ROLE_USER' ) ) { $ jsonList -> setActor ( $ user ) ; } $ response = $ jsonList -> get ( ) ; return new JsonResponse ( $ response ) ; }
docstring: Returns a list of Product entities in JSON format.
  
  @return JsonResponse
  
  @Route("/list.{_format}", requirements={ "_format" = "json" }, defaults={ "_format" = "json" })
  @Method("GET")
docstring_tokens: Returns a list of Product entities in JSON format .