2018-09-05 15:46:14 +02:00
|
|
|
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
|
2018-09-05 15:49:22 +02:00
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
2018-09-06 08:46:49 +02:00
|
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
2018-09-06 16:46:33 +02:00
|
|
|
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
|
2018-09-05 15:49:22 +02:00
|
|
|
|
2018-09-05 15:46:14 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author kevinfrantz
|
|
|
|
*
|
|
|
|
*/
|
2018-09-06 08:46:49 +02:00
|
|
|
class UserController extends AbstractController implements UserControllerInterface
|
2018-09-05 15:46:14 +02:00
|
|
|
{
|
2018-09-06 16:46:33 +02:00
|
|
|
|
2018-09-06 08:46:49 +02:00
|
|
|
/**
|
2018-09-06 16:46:33 +02:00
|
|
|
*
|
2018-09-06 08:46:49 +02:00
|
|
|
* @Route("/user/logout", name="user_logout")
|
|
|
|
*/
|
2018-09-05 15:49:22 +02:00
|
|
|
public function logout(): Response
|
2018-09-06 08:46:49 +02:00
|
|
|
{
|
2018-09-06 11:02:22 +02:00
|
|
|
return $this->render("user/login.html.twig");
|
2018-09-06 08:46:49 +02:00
|
|
|
}
|
2018-09-05 15:49:22 +02:00
|
|
|
|
2018-09-06 08:46:49 +02:00
|
|
|
/**
|
2018-09-06 16:46:33 +02:00
|
|
|
*
|
2018-09-06 08:46:49 +02:00
|
|
|
* @Route("/user/register", name="user_register")
|
|
|
|
*/
|
2018-09-05 15:49:22 +02:00
|
|
|
public function register(): Response
|
2018-09-06 08:46:49 +02:00
|
|
|
{
|
2018-09-06 11:02:22 +02:00
|
|
|
return $this->render("user/register.html.twig");
|
2018-09-06 08:46:49 +02:00
|
|
|
}
|
2018-09-05 16:00:12 +02:00
|
|
|
}
|