-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
305 changed files
with
435 additions
and
896 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?php | ||
|
||
namespace MembersBundle\Adapter\User; | ||
|
||
use Carbon\Carbon; | ||
use Symfony\Component\Security\Core\User\EquatableInterface; | ||
use Symfony\Component\Security\Core\User\UserInterface as BaseUserInterface; | ||
|
||
interface UserInterface extends BaseUserInterface, EquatableInterface | ||
{ | ||
public const ROLE_DEFAULT = 'ROLE_USER'; | ||
public const ROLE_SUPER_ADMIN = 'ROLE_SUPER_ADMIN'; | ||
|
||
public function setId(?int $id): static; | ||
|
||
public function getId(): ?int; | ||
|
||
public function setParentId(?int $parentId): static; | ||
|
||
public function getParentId(): ?int; | ||
|
||
public function setKey(string $key): static; | ||
|
||
public function getKey(): ?string; | ||
|
||
public function setProperty(string $name, string $type, mixed $data, bool $inherited = false, bool $inheritable = false): static; | ||
|
||
public function getProperty(string $name, bool $asContainer = false): mixed; | ||
|
||
public function setPublished(bool $published): static; | ||
|
||
public function getPublished(): bool; | ||
|
||
public function setConfirmationToken(?string $confirmationToken): static; | ||
|
||
public function getConfirmationToken(): ?string; | ||
|
||
public function setLastLogin(Carbon $time): static; | ||
|
||
public function getLastLogin(): ?Carbon; | ||
|
||
public function setPassword(string $password): static; | ||
|
||
public function getPassword(): ?string; | ||
|
||
public function setUserName(?string $userName): static; | ||
|
||
public function getUserName(): ?string; | ||
|
||
public function setEmail(?string $email): static; | ||
|
||
public function getEmail(): ?string; | ||
|
||
public function setGroups(array $groups): static; | ||
|
||
public function getGroups(): ?array; | ||
|
||
public function setPasswordRequestedAt(?Carbon $date): static; | ||
|
||
public function getPasswordRequestedAt(): ?Carbon; | ||
|
||
/** | ||
* Checks whether the password reset request has expired. | ||
* | ||
* @param int $ttl Requests older than this many seconds will be considered expired | ||
*/ | ||
public function isPasswordRequestNonExpired(int $ttl): bool; | ||
|
||
public function setPlainPassword(string $password): self; | ||
|
||
public function getPlainPassword(): ?string; | ||
|
||
public function isAccountNonExpired(): bool; | ||
|
||
public function isAccountNonLocked(): bool; | ||
|
||
/** | ||
* @throws \Exception | ||
*/ | ||
public function save(); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace MembersBundle\Configuration; | ||
|
||
class Configuration | ||
{ | ||
protected array $config; | ||
|
||
public function setConfig(array $config = []): void | ||
{ | ||
$this->config = $config; | ||
} | ||
|
||
public function getConfigArray(): array | ||
{ | ||
return $this->config; | ||
} | ||
|
||
public function getConfig(string $slot): mixed | ||
{ | ||
return $this->config[$slot]; | ||
} | ||
|
||
public function getOAuthConfig(string $slot): mixed | ||
{ | ||
return $this->config['oauth'][$slot]; | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.