mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Optimized draft for UserSourceDirector and UserRight
This commit is contained in:
@@ -6,7 +6,6 @@ use Symfony\Component\HttpFoundation\Response;
|
||||
use App\Entity\UserInterface;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use App\Entity\Meta\RightInterface;
|
||||
use App\Domain\UserManagement\UserIdentityManager;
|
||||
use Symfony\Component\Security\Core\User\UserInterface as CoreUserInterface;
|
||||
use FOS\RestBundle\View\ViewHandlerInterface;
|
||||
use App\Entity\Source\SourceInterface;
|
||||
@@ -35,13 +34,13 @@ final class SourceRESTResponseManagerService implements SourceRESTResponseManage
|
||||
* @var SourceInterface
|
||||
*/
|
||||
private $loadedSource;
|
||||
|
||||
|
||||
/**
|
||||
* @var UserInterface
|
||||
*/
|
||||
private $user;
|
||||
|
||||
public function __construct(CoreUserInterface $user,SecureSourceReadService $secureSourceRead, EntityManagerInterface $entityManager, RightInterface $requestedRight)
|
||||
public function __construct(CoreUserInterface $user, SecureSourceReadService $secureSourceRead, EntityManagerInterface $entityManager, RightInterface $requestedRight)
|
||||
{
|
||||
$this->entityManager = $entityManager;
|
||||
$this->user = $user;
|
||||
@@ -72,7 +71,8 @@ final class SourceRESTResponseManagerService implements SourceRESTResponseManage
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\ResponseManagement\SourceRESTResponseManagerServiceInterface::getResponse()
|
||||
*/
|
||||
public function getResponse(ViewHandlerInterface $viewHandler): Response
|
||||
|
Reference in New Issue
Block a user