Skip to content

Instantly share code, notes, and snippets.

View nchervyakov's full-sized avatar

Nikolay Chervyakov nchervyakov

  • Russia, Barnaul
View GitHub Profile
@nchervyakov
nchervyakov / C:\MyProject\src\MyProject\UserBundle\Form\Type\RegistrationFormType.php
Created May 7, 2014 11:07
Symfony2 FOSUserBundle. Registration using just email.
<?php
namespace MyProject\UserBundle\Form\Type;
use FOS\UserBundle\Form\Type\RegistrationFormType as BaseType;
use FOS\UserBundle\Model\UserManager;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use MyProject\UserBundle\Entity\User;