Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Enimo - Vendory
user-bundle
Commits
b5e6657e
Commit
b5e6657e
authored
Sep 29, 2020
by
Jozef Vajdiar
Browse files
Update UserListener.php
parent
0eff36f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Doctrine/UserListener.php
View file @
b5e6657e
...
...
@@ -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
Lifecycl
eEventArgs $args
* @param
PreUpdat
eEventArgs $args
*/
public
function
prePersist
(
Lifecycl
eEventArgs
$args
)
public
function
prePersist
(
PreUpdat
eEventArgs
$args
)
{
$object
=
$args
->
getObject
();
if
(
$object
instanceof
UserInterface
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment