PHP Class Newscoop\GimmeBundle\Controller\UsersController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Mostra file Open project: sourcefabric/newscoop

Public Methods

Method Description
getUserAccessTokenAction ( Request $request, $clientId ) : array Get user access token
getUserAction ( Request $request, $id ) : array Get user by given id
getUsersAction ( Request $request ) : array Get all users
loginAction ( Request $request ) : array Log in user
logoutAction ( Request $request ) Logout user
registerAction ( Request $request ) : Response | Exception Register user
restorePasswordAction ( Request $request ) : Response Restore user password
searchUsersAction ( Request $request ) Search for users

Method Details

getUserAccessTokenAction() public method

Get user access token
public getUserAccessTokenAction ( Request $request, $clientId ) : array
$request Symfony\Component\HttpFoundation\Request
return array

getUserAction() public method

Get user by given id
public getUserAction ( Request $request, $id ) : array
$request Symfony\Component\HttpFoundation\Request
return array

getUsersAction() public method

Get all users
public getUsersAction ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
return array

loginAction() public method

Log in user
public loginAction ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
return array

logoutAction() public method

Logout user
public logoutAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

registerAction() public method

Register user
public registerAction ( Request $request ) : Response | Exception
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response | Exception

restorePasswordAction() public method

Restore user password
public restorePasswordAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

searchUsersAction() public method

Get list of users for search query
public searchUsersAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request