src/Synapse/User/UserController.php
public function get(Request $request)
    {
        $userEntity = $request->attributes->get('user');

        if ($userEntity === null) {
            $userEntity = $this->getUser();
        } elseif ($userEntity === false) {
            return $this->createNotFoundResponse();
        }

        return $this->userArrayWithoutPassword($userEntity);
    }
public function get(Request $request)
    {
        $userEntity = $request->attributes->get('user');

        if ($userEntity === null) {
            $userEntity = $this->getUser();
        } elseif ($userEntity === false) {
            return $this->createNotFoundResponse();
        }

        return $this->userArrayWithoutPassword($userEntity);
    }
public function get ( Request $ request ) { $ userEntity = $ request -> attributes -> get ( 'user' ) ; if ( $ userEntity === null ) { $ userEntity = $ this -> getUser ( ) ; } elseif ( $ userEntity === false ) { return $ this -> createNotFoundResponse ( ) ; } return $ this -> userArrayWithoutPassword ( $ userEntity ) ; }
Return a user entity

@param  Request $request
@return array
Return a user entity