mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Implemented UserIdentityService
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
namespace App\Domain\RightManagement;
|
||||
|
||||
use App\Entity\Meta\Right;
|
||||
use App\Entity\UserInterface as InfinitoUserInterface;
|
||||
use App\Entity\Source\SourceInterface;
|
||||
use App\Entity\UserInterface;
|
||||
use Symfony\Component\Security\Core\Security;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
final class UserRightService extends Right implements UserRightServiceInterface
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @var Security
|
||||
*/
|
||||
private $security;
|
||||
|
||||
|
||||
public function __construct(Security $security)
|
||||
{
|
||||
$this->security = $security;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* @see \App\Entity\Attribut\RecieverAttributInterface::setReciever()
|
||||
*/
|
||||
public function setReciever(SourceInterface $reciever):void{
|
||||
|
||||
}
|
||||
|
||||
public function getReciever():SourceInterface{
|
||||
return $this->user->getSource();
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace App\Domain\RightManagement;
|
||||
|
||||
use App\Entity\Meta\RightInterface;
|
||||
|
||||
/**
|
||||
* Offers a Service for managing the rights
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface UserRightServiceInterface extends RightInterface
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user