src/Sulu/Bundle/SecurityBundle/Controller/UserController.php
public function getAction($id)
    {
        $find = function($id) {
            return $this->getUserManager()->getUserById($id);
        };

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

        $this->addSerializationGroups($view);

        return $this->handleView($view);
    }
public function getAction($id)
    {
        $find = function($id) {
            return $this->getUserManager()->getUserById($id);
        };

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

        $this->addSerializationGroups($view);

        return $this->handleView($view);
    }
public function getAction ( $ id ) { $ find = function ( $ id ) { return $ this -> getUserManager ( ) -> getUserById ( $ id ) ; } ; $ view = $ this -> responseGetById ( $ id , $ find ) ; $ this -> addSerializationGroups ( $ view ) ; return $ this -> handleView ( $ view ) ; }
Returns the user with the given id.

@param int $id

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