Skip to content

Instantly share code, notes, and snippets.

View epitre's full-sized avatar
🏠
Working from home

Carlos Pereira De Amorim epitre

🏠
Working from home
View GitHub Profile
@epitre
epitre / RegisterController.php
Created July 16, 2018 08:25
SF register + login
<?php
namespace App\Controller;
use App\Entity\User;
use App\Form\RegisterType;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Routing\Annotation\Route;