Skip to content

Commit

Permalink
revert: mode for symofny6 support #6555
Browse files Browse the repository at this point in the history
This reverts commits 7723d25 and
ce427dd because these changes will be
more useful in the v3 branch.
  • Loading branch information
boite committed Sep 19, 2022
1 parent 44c7768 commit f72d38d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 47 deletions.
69 changes: 32 additions & 37 deletions composer.json
@@ -1,41 +1,36 @@
{
"name": "userbase/client",
"description": "UserBase PHP Client: Identity + Login + Signup Service",
"homepage": "http://www.github.com/userbase-project/userbase-client-php",
"keywords": [
"login",
"signup",
"user",
"account"
],
"type": "library",
"authors": [
{
"name": "Joost Faassen",
"email": "j.faassen@linkorb.com",
"role": "Development"
"name": "userbase/client",
"description": "UserBase PHP Client: Identity + Login + Signup Service",
"homepage": "http://www.github.com/userbase-project/userbase-client-php",
"keywords": ["login", "signup", "user", "account"],
"type": "library",
"authors": [
{
"name": "Joost Faassen",
"email": "j.faassen@linkorb.com",
"role": "Development"
},
{
"name": "kaushik prajapati",
"email": "prajapatikaushik@gmail.com",
"role": "Developer"
}
],
"require": {
"php": ">=5.3.0",
"linkorb/envoi": "^1.0",
"linkorb/userbase-role-contracts": "^2.0",
"psr/cache": "~1.0",
"symfony/cache": "~3.0 || ^4.0 || ^5.0",
"symfony/event-dispatcher-contracts": "^2.0",
"symfony/security-core": "~2.6 || ~3.0 || ^4.0 || ^5.0"
},
{
"name": "kaushik prajapati",
"email": "prajapatikaushik@gmail.com",
"role": "Developer"
}
],
"require": {
"php": ">=5.3.0",
"linkorb/envoi": "^1.0",
"linkorb/userbase-role-contracts": "^2.0",
"psr/cache": "~1.0",
"symfony/cache": "~3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/event-dispatcher-contracts": "^2.0 || ^3.0",
"symfony/security-core": "~2.6 || ~3.0 || ^4.0 || ^5.0 || ^6.0"
},
"require-dev": {
"symfony/dotenv": "~3.0 || ^4.0 || ^5.0 || ^6.0"
},
"autoload": {
"psr-4": {
"UserBase\\Client\\": "src/"
"require-dev": {
"symfony/dotenv": "~3.0 || ^4.0 || ^5.0"
},
"autoload": {
"psr-4": {
"UserBase\\Client\\": "src/"
}
}
}
}
1 change: 0 additions & 1 deletion src/Event/UserLoadedEvent.php
Expand Up @@ -2,7 +2,6 @@

namespace UserBase\Client\Event;


use Symfony\Contracts\EventDispatcher\Event;
use UserBase\Client\Model\User;

Expand Down
14 changes: 5 additions & 9 deletions src/Model/User.php
Expand Up @@ -2,20 +2,17 @@

namespace UserBase\Client\Model;

use Symfony\Component\Security\Core\User\UserInterface as BaseUserInterface;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
use Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterface;
use RuntimeException;
use LinkORB\Contracts\UserbaseRole\RoleInterface;
use RuntimeException;
use Symfony\Component\Security\Core\User\UserInterface as BaseUserInterface;

final class User implements
AccountContainerInterface,
BaseUserInterface,
LegacyAdvancedUserInterface,
PolicyContainerInterface,
RoleInterface,
UserInterface,
LegacyPasswordAuthenticatedUserInterface
UserInterface
{
/**
* @deprecated
Expand Down Expand Up @@ -105,9 +102,8 @@ public function getRoles()

/**
* {@inheritdoc}
* @see PasswordAuthenticatedUserInterface
*/
public function getPassword(): ?string
public function getPassword()
{
return $this->password;
}
Expand All @@ -121,7 +117,7 @@ public function setPassword($password)
/**
* {@inheritdoc}
*/
public function getSalt(): ?string
public function getSalt()
{
return $this->salt;
}
Expand Down

0 comments on commit f72d38d

Please sign in to comment.