src/Sulu/Bundle/SecurityBundle/Controller/RoleController.php
public function getAction($id)
    {
        $find = function($id) {
            /** @var RoleInterface $role */
            $role = $this->getRoleRepository()->findRoleById($id);

            return $this->convertRole($role);
        };

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

        return $this->handleView($view);
    }
public function getAction($id)
    {
        $find = function($id) {
            /** @var RoleInterface $role */
            $role = $this->getRoleRepository()->findRoleById($id);

            return $this->convertRole($role);
        };

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

        return $this->handleView($view);
    }
public function getAction ( $ id ) { $ find = function ( $ id ) { /** @var RoleInterface $role */ $ role = $ this -> getRoleRepository ( ) -> findRoleById ( $ id ) ; return $ this -> convertRole ( $ role ) ; } ; $ view = $ this -> responseGetById ( $ id , $ find ) ; return $ this -> handleView ( $ view ) ; }
Returns the role with the given id.

@param $id

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