mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Made person identity optional for user
This commit is contained in:
@@ -34,7 +34,11 @@ class UserSource extends AbstractComplexSource implements UserSourceInterface
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->personIdentitySource = new PersonIdentitySource();
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function hasPersonIdentitySource(): bool
|
||||
{
|
||||
return isset($this->personIdentitySource);
|
||||
}
|
||||
}
|
||||
|
@@ -10,4 +10,10 @@ use App\Entity\Attribut\PersonIdentitySourceAttributInterface;
|
||||
*/
|
||||
interface UserSourceInterface extends ComplexSourceInterface, UserAttributInterface, PersonIdentitySourceAttributInterface
|
||||
{
|
||||
/**
|
||||
* Checks if the user has an identity source.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function hasPersonIdentitySource(): bool;
|
||||
}
|
||||
|
Reference in New Issue
Block a user