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
071a66b4
Commit
071a66b4
authored
Oct 02, 2020
by
Jozef Vajdiar
Browse files
no message
parent
ade61d69
Changes
3
Hide whitespace changes
Inline
Side-by-side
.idea/workspace.xml
0 → 100644
View file @
071a66b4
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"497aed2e-6472-4dd2-9322-c3f54da4b603"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/Doctrine/CouchDB/UserListener.php"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/Doctrine/CouchDB/UserListener.php"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_NON_ACTIVE_CHANGELIST"
value=
"false"
/>
<option
name=
"LAST_RESOLUTION"
value=
"IGNORE"
/>
</component>
<component
name=
"ComposerSettings"
>
<pharConfigPath>
$PROJECT_DIR$/composer.json
</pharConfigPath>
<execution
/>
</component>
<component
name=
"Git.Settings"
>
<option
name=
"RECENT_GIT_ROOT_PATH"
value=
"$PROJECT_DIR$"
/>
</component>
<component
name=
"ProjectId"
id=
"1iKp3FhJ9IzZKbktJQoRjHfJNee"
/>
<component
name=
"ProjectViewState"
>
<option
name=
"hideEmptyMiddlePackages"
value=
"true"
/>
<option
name=
"showLibraryContents"
value=
"true"
/>
</component>
<component
name=
"PropertiesComponent"
>
<property
name=
"RunOnceActivity.OpenProjectViewOnStart"
value=
"true"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"vue.rearranger.settings.migration"
value=
"true"
/>
</component>
<component
name=
"SpellCheckerSettings"
RuntimeDictionaries=
"0"
Folders=
"0"
CustomDictionaries=
"0"
DefaultDictionary=
"application-level"
UseSingleDictionary=
"true"
transferred=
"true"
/>
<component
name=
"TaskManager"
>
<task
active=
"true"
id=
"Default"
summary=
"Default task"
>
<changelist
id=
"497aed2e-6472-4dd2-9322-c3f54da4b603"
name=
"Default Changelist"
comment=
""
/>
<created>
1601665936179
</created>
<option
name=
"number"
value=
"Default"
/>
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1601665936179
</updated>
<workItem
from=
"1601665937215"
duration=
"326000"
/>
</task>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<option
name=
"version"
value=
"3"
/>
</component>
<component
name=
"WindowStateProjectService"
>
<state
x=
"561"
y=
"130"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1601665939358"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
<state
x=
"561"
y=
"130"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser/0.0.1920.1040/-1920.0.1920.1040/1920.0.1768.952@0.0.1920.1040"
timestamp=
"1601665939358"
/>
<state
x=
"666"
y=
"253"
width=
"587"
height=
"534"
key=
"find.popup"
timestamp=
"1601665967445"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
<state
x=
"666"
y=
"253"
width=
"587"
height=
"534"
key=
"find.popup/0.0.1920.1040/-1920.0.1920.1040/1920.0.1768.952@0.0.1920.1040"
timestamp=
"1601665967445"
/>
</component>
</project>
\ No newline at end of file
Doctrine/CouchDB/UserListener.php
View file @
071a66b4
...
@@ -13,10 +13,10 @@ namespace FOS\UserBundle\Doctrine\CouchDB;
...
@@ -13,10 +13,10 @@ namespace FOS\UserBundle\Doctrine\CouchDB;
use
Doctrine\Common\EventSubscriber
;
use
Doctrine\Common\EventSubscriber
;
use
Doctrine\ODM\CouchDB\Event
;
use
Doctrine\ODM\CouchDB\Event
;
use
Doctrine\ODM\CouchDB\Event\LifecycleEventArgs
;
use
FOS\UserBundle\Model\UserInterface
;
use
FOS\UserBundle\Model\UserInterface
;
use
FOS\UserBundle\Util\CanonicalFieldsUpdater
;
use
FOS\UserBundle\Util\CanonicalFieldsUpdater
;
use
FOS\UserBundle\Util\PasswordUpdaterInterface
;
use
FOS\UserBundle\Util\PasswordUpdaterInterface
;
use
Doctrine\ORM\Event\LifecycleEventArgs
;
class
UserListener
implements
EventSubscriber
class
UserListener
implements
EventSubscriber
{
{
...
...
Doctrine/UserListener.php
View file @
071a66b4
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
namespace
FOS\UserBundle\Doctrine
;
namespace
FOS\UserBundle\Doctrine
;
use
Doctrine\Common\EventSubscriber
;
use
Doctrine\Common\EventSubscriber
;
use
Doctrine\Common\Persistence\Event\LifecycleEventArgs
;
use
Doctrine\Common\Persistence\ObjectManager
;
use
Doctrine\Common\Persistence\ObjectManager
;
use
Doctrine\ODM\MongoDB\DocumentManager
;
use
Doctrine\ODM\MongoDB\DocumentManager
;
use
Doctrine\ORM\EntityManager
;
use
Doctrine\ORM\EntityManager
;
...
@@ -20,7 +19,7 @@ use FOS\UserBundle\Model\UserInterface;
...
@@ -20,7 +19,7 @@ use FOS\UserBundle\Model\UserInterface;
use
FOS\UserBundle\Util\CanonicalFieldsUpdater
;
use
FOS\UserBundle\Util\CanonicalFieldsUpdater
;
use
FOS\UserBundle\Util\PasswordUpdaterInterface
;
use
FOS\UserBundle\Util\PasswordUpdaterInterface
;
use
Doctrine\ORM\Event\PreUpdateEventArgs
;
use
Doctrine\ORM\Event\PreUpdateEventArgs
;
use
Doctrine\ORM\Event\LifecycleEventArgs
;
/**
/**
* Doctrine listener updating the canonical username and password fields.
* Doctrine listener updating the canonical username and password fields.
...
@@ -53,9 +52,9 @@ class UserListener implements EventSubscriber
...
@@ -53,9 +52,9 @@ class UserListener implements EventSubscriber
/**
/**
* Pre persist listener based on doctrine common.
* Pre persist listener based on doctrine common.
*
*
* @param
PreUpdat
eEventArgs $args
* @param
Lifecycl
eEventArgs $args
*/
*/
public
function
prePersist
(
PreUpdat
eEventArgs
$args
)
public
function
prePersist
(
Lifecycl
eEventArgs
$args
)
{
{
$object
=
$args
->
getObject
();
$object
=
$args
->
getObject
();
if
(
$object
instanceof
UserInterface
)
{
if
(
$object
instanceof
UserInterface
)
{
...
@@ -66,9 +65,9 @@ class UserListener implements EventSubscriber
...
@@ -66,9 +65,9 @@ class UserListener implements EventSubscriber
/**
/**
* Pre update listener based on doctrine common.
* Pre update listener based on doctrine common.
*
*
* @param PreUpdateEventArgs $args
* @param PreUpdateEventArgs
$args
*/
*/
public
function
preUpdate
(
PreUpdateEventArgs
$args
)
public
function
preUpdate
(
PreUpdateEventArgs
$args
)
{
{
$object
=
$args
->
getObject
();
$object
=
$args
->
getObject
();
if
(
$object
instanceof
UserInterface
)
{
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