infinito/application/src/Controller/UserController.php

34 lines
765 B
PHP
Raw Normal View History

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;
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 08:46:49 +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
{
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 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
{
return $this->render("user/register.html.twig");
2018-09-06 08:46:49 +02:00
}
2018-09-05 16:00:12 +02:00
}