src/User/UserEditService.php
public function updateUser(User $user, UserUpdater $up)
    {
        $up->updateUser($user, $this->getEncoder());
        $em = $this->getRegistry()->getManager();
        $em->persist($user);
        $em->flush();
    }
public function updateUser(User $user, UserUpdater $up)
    {
        $up->updateUser($user, $this->getEncoder());
        $em = $this->getRegistry()->getManager();
        $em->persist($user);
        $em->flush();
    }
public function updateUser ( User $ user , UserUpdater $ up ) { $ up -> updateUser ( $ user , $ this -> getEncoder ( ) ) ; $ em = $ this -> getRegistry ( ) -> getManager ( ) ; $ em -> persist ( $ user ) ; $ em -> flush ( ) ; }
Update user details

@param User        $user
@param UserUpdater $up
Update user details