UsersController

Extends \Symfony\Bundle\FrameworkBundle\Controller\AbstractController

Users Controller provides forms, templates and logic for managing user accounts

package

App\Controller

Route

("/users")

Methods

Delete a user from the table

deleteUsersAction(\Symfony\Component\HttpFoundation\Request $request, \App\Entity\Users $user) : \Symfony\Component\HttpFoundation\RedirectResponse
Route

("/{id}", name="users_delete", methods={"DELETE"})

Arguments

$request

\Symfony\Component\HttpFoundation\Request

Response

\Symfony\Component\HttpFoundation\RedirectResponse

Edit the details for user form with validation and update to table

editUsersAction(\Symfony\Component\HttpFoundation\Request $request, \App\Entity\Users $user, \Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface $passwordEncoder) : \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
Route

("/{id}/edit", name="users_edit", methods={"GET","POST"})

Arguments

$request

\Symfony\Component\HttpFoundation\Request

$passwordEncoder

\Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface

Response

\Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response

View all Users table main index page

indexUsersAction() : \Symfony\Component\HttpFoundation\Response
Route

("/", name="users_index", methods={"GET"})

Response

\Symfony\Component\HttpFoundation\Response

Create new user in the table and validate form information

newUsersAction(\Symfony\Component\HttpFoundation\Request $request, \Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface $passwordEncoder) : \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
Route

("/new", name="users_new", methods={"GET","POST"})

Arguments

$request

\Symfony\Component\HttpFoundation\Request

$passwordEncoder

\Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface

Response

\Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response

Show details for a user in a single table page

showUsersAction(\App\Entity\Users $user) : \Symfony\Component\HttpFoundation\Response
Route

("/{id}", name="users_show", methods={"GET"})

Arguments

Response

\Symfony\Component\HttpFoundation\Response