Skip to content

Commit f72d38d

Browse files
committed
revert: mode for symofny6 support #6555
This reverts commits 7723d25 and ce427dd because these changes will be more useful in the v3 branch.
1 parent 44c7768 commit f72d38d

File tree

3 files changed

+37
-47
lines changed

3 files changed

+37
-47
lines changed

composer.json

Lines changed: 32 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,36 @@
11
{
2-
"name": "userbase/client",
3-
"description": "UserBase PHP Client: Identity + Login + Signup Service",
4-
"homepage": "http://www.github.com/userbase-project/userbase-client-php",
5-
"keywords": [
6-
"login",
7-
"signup",
8-
"user",
9-
"account"
10-
],
11-
"type": "library",
12-
"authors": [
13-
{
14-
"name": "Joost Faassen",
15-
"email": "j.faassen@linkorb.com",
16-
"role": "Development"
2+
"name": "userbase/client",
3+
"description": "UserBase PHP Client: Identity + Login + Signup Service",
4+
"homepage": "http://www.github.com/userbase-project/userbase-client-php",
5+
"keywords": ["login", "signup", "user", "account"],
6+
"type": "library",
7+
"authors": [
8+
{
9+
"name": "Joost Faassen",
10+
"email": "j.faassen@linkorb.com",
11+
"role": "Development"
12+
},
13+
{
14+
"name": "kaushik prajapati",
15+
"email": "prajapatikaushik@gmail.com",
16+
"role": "Developer"
17+
}
18+
],
19+
"require": {
20+
"php": ">=5.3.0",
21+
"linkorb/envoi": "^1.0",
22+
"linkorb/userbase-role-contracts": "^2.0",
23+
"psr/cache": "~1.0",
24+
"symfony/cache": "~3.0 || ^4.0 || ^5.0",
25+
"symfony/event-dispatcher-contracts": "^2.0",
26+
"symfony/security-core": "~2.6 || ~3.0 || ^4.0 || ^5.0"
1727
},
18-
{
19-
"name": "kaushik prajapati",
20-
"email": "prajapatikaushik@gmail.com",
21-
"role": "Developer"
22-
}
23-
],
24-
"require": {
25-
"php": ">=5.3.0",
26-
"linkorb/envoi": "^1.0",
27-
"linkorb/userbase-role-contracts": "^2.0",
28-
"psr/cache": "~1.0",
29-
"symfony/cache": "~3.0 || ^4.0 || ^5.0 || ^6.0",
30-
"symfony/event-dispatcher-contracts": "^2.0 || ^3.0",
31-
"symfony/security-core": "~2.6 || ~3.0 || ^4.0 || ^5.0 || ^6.0"
32-
},
33-
"require-dev": {
34-
"symfony/dotenv": "~3.0 || ^4.0 || ^5.0 || ^6.0"
35-
},
36-
"autoload": {
37-
"psr-4": {
38-
"UserBase\\Client\\": "src/"
28+
"require-dev": {
29+
"symfony/dotenv": "~3.0 || ^4.0 || ^5.0"
30+
},
31+
"autoload": {
32+
"psr-4": {
33+
"UserBase\\Client\\": "src/"
34+
}
3935
}
40-
}
4136
}

src/Event/UserLoadedEvent.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace UserBase\Client\Event;
44

5-
65
use Symfony\Contracts\EventDispatcher\Event;
76
use UserBase\Client\Model\User;
87

src/Model/User.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@
22

33
namespace UserBase\Client\Model;
44

5-
use Symfony\Component\Security\Core\User\UserInterface as BaseUserInterface;
6-
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
7-
use Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterface;
8-
use RuntimeException;
95
use LinkORB\Contracts\UserbaseRole\RoleInterface;
6+
use RuntimeException;
7+
use Symfony\Component\Security\Core\User\UserInterface as BaseUserInterface;
108

119
final class User implements
1210
AccountContainerInterface,
1311
BaseUserInterface,
1412
LegacyAdvancedUserInterface,
1513
PolicyContainerInterface,
1614
RoleInterface,
17-
UserInterface,
18-
LegacyPasswordAuthenticatedUserInterface
15+
UserInterface
1916
{
2017
/**
2118
* @deprecated
@@ -105,9 +102,8 @@ public function getRoles()
105102

106103
/**
107104
* {@inheritdoc}
108-
* @see PasswordAuthenticatedUserInterface
109105
*/
110-
public function getPassword(): ?string
106+
public function getPassword()
111107
{
112108
return $this->password;
113109
}
@@ -121,7 +117,7 @@ public function setPassword($password)
121117
/**
122118
* {@inheritdoc}
123119
*/
124-
public function getSalt(): ?string
120+
public function getSalt()
125121
{
126122
return $this->salt;
127123
}

0 commit comments

Comments
 (0)