mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-22 14:45:43 +00:00
csfixes
This commit is contained in:
@@ -112,6 +112,11 @@ class User implements AdvancedUserInterface
|
||||
*/
|
||||
private string $password = '';
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="json")
|
||||
*/
|
||||
private array $roles = ['ROLE_USER'];
|
||||
|
||||
/**
|
||||
* @internal must be set to null if we use bcrypt
|
||||
*
|
||||
@@ -138,11 +143,6 @@ class User implements AdvancedUserInterface
|
||||
*/
|
||||
private ?string $usernameCanonical = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="json")
|
||||
*/
|
||||
private array $roles = ['ROLE_USER'];
|
||||
|
||||
/**
|
||||
* User constructor.
|
||||
*/
|
||||
@@ -156,6 +156,13 @@ class User implements AdvancedUserInterface
|
||||
return $this->getLabel();
|
||||
}
|
||||
|
||||
public function addGroupCenter(GroupCenter $groupCenter): self
|
||||
{
|
||||
$this->groupCenters->add($groupCenter);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
// empty function... remove?
|
||||
public function eraseCredentials()
|
||||
{
|
||||
@@ -300,13 +307,6 @@ class User implements AdvancedUserInterface
|
||||
}
|
||||
}
|
||||
|
||||
public function addGroupCenter(GroupCenter $groupCenter): self
|
||||
{
|
||||
$this->groupCenters->add($groupCenter);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set attributes.
|
||||
*
|
||||
@@ -328,12 +328,6 @@ class User implements AdvancedUserInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setRoles($roles): self
|
||||
{
|
||||
$this->roles = $roles;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setEmail($email): self
|
||||
{
|
||||
$this->email = $email;
|
||||
@@ -390,6 +384,13 @@ class User implements AdvancedUserInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setRoles($roles): self
|
||||
{
|
||||
$this->roles = $roles;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setSalt($salt): self
|
||||
{
|
||||
$this->salt = $salt;
|
||||
|
Reference in New Issue
Block a user