Commit 071a66b4 authored by Jozef Vajdiar's avatar Jozef Vajdiar
Browse files

no message

parent ade61d69
<?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
......@@ -13,10 +13,10 @@ namespace FOS\UserBundle\Doctrine\CouchDB;
use Doctrine\Common\EventSubscriber;
use Doctrine\ODM\CouchDB\Event;
use Doctrine\ODM\CouchDB\Event\LifecycleEventArgs;
use FOS\UserBundle\Model\UserInterface;
use FOS\UserBundle\Util\CanonicalFieldsUpdater;
use FOS\UserBundle\Util\PasswordUpdaterInterface;
use Doctrine\ORM\Event\LifecycleEventArgs;
class UserListener implements EventSubscriber
{
......
......@@ -12,7 +12,6 @@
namespace FOS\UserBundle\Doctrine;
use Doctrine\Common\EventSubscriber;
use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ORM\EntityManager;
......@@ -20,7 +19,7 @@ use FOS\UserBundle\Model\UserInterface;
use FOS\UserBundle\Util\CanonicalFieldsUpdater;
use FOS\UserBundle\Util\PasswordUpdaterInterface;
use Doctrine\ORM\Event\PreUpdateEventArgs;
use Doctrine\ORM\Event\LifecycleEventArgs;
/**
* Doctrine listener updating the canonical username and password fields.
......@@ -53,9 +52,9 @@ class UserListener implements EventSubscriber
/**
* Pre persist listener based on doctrine common.
*
* @param PreUpdateEventArgs $args
* @param LifecycleEventArgs $args
*/
public function prePersist(PreUpdateEventArgs $args)
public function prePersist(LifecycleEventArgs $args)
{
$object = $args->getObject();
if ($object instanceof UserInterface) {
......@@ -66,9 +65,9 @@ class UserListener implements EventSubscriber
/**
* 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();
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