I am starting with Symfony2 and I am trying to override FOS \ UserBundle \ Form \ Handler \ RegistrationFormHandler from FOSUserBundle.
My code is:
<?php namespace Testing\CoreBundle\Form\Handler; use FOS\UserBundle\Model\UserInterface; use FOS\UserBundle\Form\Handler\RegistrationFormHandler as BaseHandler; use Testing\CoreBundle\Entity\User as UserDetails; class RegistrationFormHandler extends BaseHandler { protected function onSuccess(UserInterface $user, $confirmation) {
So the thing is, I need an instance of Doctrine Entity Manager, but I donβt know where / how to get it in this case!
Any idea?
Thanks in advance!
source share