Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
digitalascetic/base-user / Service / UserManagerInterface.php
Size: Mime:
<?php

namespace DigitalAscetic\BaseUserBundle\Service;

use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;

interface UserManagerInterface extends PasswordUpgraderInterface
{
    public function findUser(string $usernameOrEmail): ?UserInterface;

    public function findUserBy(array $criteria): ?UserInterface;

    public function updatePassword(PasswordAuthenticatedUserInterface $user, string $plainPassword): void;

    public function updateUser(PasswordAuthenticatedUserInterface $user, $flush = true): void;
}