Implemented UserIdentityService

This commit is contained in:
Kevin Frantz
2019-01-13 13:14:29 +01:00
parent 04b156b8fc
commit c6552f4589
9 changed files with 171 additions and 56 deletions

View File

@@ -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();
}
}

View File

@@ -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
{
}