Commit b5e6657e authored by Jozef Vajdiar's avatar Jozef Vajdiar
Browse files

Update UserListener.php

parent 0eff36f2
......@@ -11,14 +11,14 @@
namespace FOS\UserBundle\Doctrine;
use Doctrine\Common\EventSubscriber;
use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
use Doctrine\Common\EventSubscriber;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ORM\EntityManager;
use FOS\UserBundle\Model\UserInterface;
use FOS\UserBundle\Util\CanonicalFieldsUpdater;
use FOS\UserBundle\Util\PasswordUpdaterInterface;
use Doctrine\ORM\Event\PreUpdateEventArgs;
/**
* Doctrine listener updating the canonical username and password fields.
......@@ -51,9 +51,9 @@ class UserListener implements EventSubscriber
/**
* Pre persist listener based on doctrine common.
*
* @param LifecycleEventArgs $args
* @param PreUpdateEventArgs $args
*/
public function prePersist(LifecycleEventArgs $args)
public function prePersist(PreUpdateEventArgs $args)
{
$object = $args->getObject();
if ($object instanceof UserInterface) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment