mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 08:03:49 +00:00
Configure routes using annotation
This commit is contained in:
@@ -26,6 +26,7 @@ use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
|
||||
use Symfony\Component\Validator\Constraints\Callback;
|
||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
||||
@@ -87,6 +88,7 @@ class PasswordController extends AbstractController
|
||||
|
||||
/**
|
||||
* @return Response
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/public/{_locale}/password/request-changed", name="password_request_recover_changed")
|
||||
*/
|
||||
public function changeConfirmedAction()
|
||||
{
|
||||
@@ -95,6 +97,7 @@ class PasswordController extends AbstractController
|
||||
|
||||
/**
|
||||
* @return Response|\Symfony\Component\HttpFoundation\RedirectResponse
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/public/{_locale}/password/recover", name="password_recover")
|
||||
*/
|
||||
public function recoverAction(Request $request): \Symfony\Component\HttpFoundation\Response|\Symfony\Component\HttpFoundation\RedirectResponse
|
||||
{
|
||||
@@ -163,6 +166,7 @@ class PasswordController extends AbstractController
|
||||
* @throws \Doctrine\ORM\NonUniqueResultException
|
||||
*
|
||||
* @return Response|\Symfony\Component\HttpFoundation\RedirectResponse
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/public/{_locale}/password/request-recover", name="password_request_recover")
|
||||
*/
|
||||
public function requestRecoverAction(Request $request): \Symfony\Component\HttpFoundation\Response|\Symfony\Component\HttpFoundation\RedirectResponse
|
||||
{
|
||||
@@ -234,6 +238,7 @@ class PasswordController extends AbstractController
|
||||
|
||||
/**
|
||||
* @return Response
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/public/{_locale}/password/request-confirm", name="password_request_recover_confirm")
|
||||
*/
|
||||
public function requestRecoverConfirmAction()
|
||||
{
|
||||
@@ -242,6 +247,7 @@ class PasswordController extends AbstractController
|
||||
|
||||
/**
|
||||
* @return Response
|
||||
* @Route("/{_locale}/my/password", name="change_my_password")
|
||||
*/
|
||||
public function UserPasswordAction(Request $request)
|
||||
{
|
||||
|
Reference in New Issue
Block a user