src/Synapse/OAuth2/OAuthController.php
protected function getUserFromRequest(Request $request)
    {
        $username = $request->get('username');

        return $this->userService->findByEmail($username);
    }
protected function getUserFromRequest(Request $request)
    {
        $username = $request->get('username');

        return $this->userService->findByEmail($username);
    }
protected function getUserFromRequest ( Request $ request ) { $ username = $ request -> get ( 'username' ) ; return $ this -> userService -> findByEmail ( $ username ) ; }
Get the user from the request

@param  Request $request
@return UserEntity|boolean
Get the user from the request