PHP Class FOS\UserBundle\Controller\UserController

Inheritance: extends Symfony\Component\DependencyInjection\ContainerAware
Show file Open project: KnpLabs/KnpUserBundle

Public Methods

Method Description
changePasswordAction ( ) Change user password: show form
changePasswordUpdateAction ( ) Change user password: submit form
checkConfirmationEmailAction ( ) Tell the user to check his email provider
checkResettingEmailAction ( ) Tell the user to check his email provider
confirmAction ( $token ) Receive the confirmation token from user email provider, login the user
confirmedAction ( ) Tell the user his account is now confirmed
createAction ( ) Create a user and send a confirmation email
deleteAction ( $username ) Delete one user
editAction ( $username ) Edit one user, show the edit form
listAction ( ) Show all users
newAction ( ) Show the new form
requestResetPasswordAction ( ) Request reset user password: show form
resetPasswordAction ( $token ) Reset user password: show form
resetPasswordUpdateAction ( $token ) Reset user password: submit form
sendResettingEmailAction ( ) Request reset user password: submit form and send email
showAction ( $username ) Show one user
updateAction ( $username ) Update a user

Protected Methods

Method Description
authenticateUser ( FOS\UserBundle\Model\UserInterface $user, boolean $reAuthenticate = false ) : null Authenticate a user with Symfony Security
findUserBy ( string $key, mixed $value ) : User Find a user by a specific property
getEngine ( )
getPasswordRequestTtl ( )
getUser ( ) : User Get a user from the security context
setFlash ( $action, $value )

Method Details

authenticateUser() protected method

Authenticate a user with Symfony Security
protected authenticateUser ( FOS\UserBundle\Model\UserInterface $user, boolean $reAuthenticate = false ) : null
$user FOS\UserBundle\Model\UserInterface
$reAuthenticate boolean
return null

changePasswordAction() public method

Change user password: show form

changePasswordUpdateAction() public method

Change user password: submit form

checkConfirmationEmailAction() public method

Tell the user to check his email provider

checkResettingEmailAction() public method

Tell the user to check his email provider

confirmAction() public method

Receive the confirmation token from user email provider, login the user
public confirmAction ( $token )

confirmedAction() public method

Tell the user his account is now confirmed
public confirmedAction ( )

createAction() public method

Create a user and send a confirmation email
public createAction ( )

deleteAction() public method

Delete one user
public deleteAction ( $username )

editAction() public method

Edit one user, show the edit form
public editAction ( $username )

findUserBy() protected method

Find a user by a specific property
protected findUserBy ( string $key, mixed $value ) : User
$key string property name
$value mixed property value
return User

getEngine() protected method

protected getEngine ( )

getPasswordRequestTtl() protected method

protected getPasswordRequestTtl ( )

getUser() protected method

Get a user from the security context
protected getUser ( ) : User
return User

listAction() public method

Show all users
public listAction ( )

newAction() public method

Show the new form
public newAction ( )

requestResetPasswordAction() public method

Request reset user password: show form

resetPasswordAction() public method

Reset user password: show form
public resetPasswordAction ( $token )

resetPasswordUpdateAction() public method

Reset user password: submit form
public resetPasswordUpdateAction ( $token )

sendResettingEmailAction() public method

Request reset user password: submit form and send email

setFlash() protected method

protected setFlash ( $action, $value )

showAction() public method

Show one user
public showAction ( $username )

updateAction() public method

Update a user
public updateAction ( $username )