Controller/Api/Resource/BaseResourceController.php
public function listAction(Request $request)
    {
        $this->checkAccess('LIST', null);
        $resources = $this->getResourceManager()->findAll();
        $view = $this->view($resources, \FOS\RestBundle\Util\Codes::HTTP_OK);
        return $this->handleView($view);
    }
public function listAction(Request $request)
    {
        $this->checkAccess('LIST', null);
        $resources = $this->getResourceManager()->findAll();
        $view = $this->view($resources, \FOS\RestBundle\Util\Codes::HTTP_OK);
        return $this->handleView($view);
    }
public function listAction ( Request $ request ) { $ this -> checkAccess ( 'LIST' , null ) ; $ resources = $ this -> getResourceManager ( ) -> findAll ( ) ; $ view = $ this -> view ( $ resources , \ FOS \ RestBundle \ Util \ Codes :: HTTP_OK ) ; return $ this -> handleView ( $ view ) ; }
List all resources.

@param Request $request the request object
@return View
List all resources .