/** * @param UserInterface $user * @param string $password * * @return bool */ public function isValid(UserInterface $user, $password) { return $this->password->verify($password, $user->getPassword()); }
/** * @return null|string */ public function getScope() { return $this->user instanceof Entity\ScopesProviderInterface ? $this->user->getScopesString() : null; }