src/Sulu/Bundle/SecurityBundle/Controller/GroupController.php
public function getAction($id)
    {
        $find = function($id) {
            /** @var Group $group */
            $group = $this->getDoctrine()
                ->getRepository(static::$entityName)
                ->findGroupById($id);

            return $group;
        };

        $view = $this->responseGetById($id, $find);

        return $this->handleView($view);
    }
public function getAction($id)
    {
        $find = function($id) {
            /** @var Group $group */
            $group = $this->getDoctrine()
                ->getRepository(static::$entityName)
                ->findGroupById($id);

            return $group;
        };

        $view = $this->responseGetById($id, $find);

        return $this->handleView($view);
    }
public function getAction ( $ id ) { $ find = function ( $ id ) { /** @var Group $group */ $ group = $ this -> getDoctrine ( ) -> getRepository ( static :: $ entityName ) -> findGroupById ( $ id ) ; return $ group ; } ; $ view = $ this -> responseGetById ( $ id , $ find ) ; return $ this -> handleView ( $ view ) ; }
Returns the group with the given id.

@param $id

@return \Symfony\Component\HttpFoundation\Response
Returns the group with the given id .