mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Refactored code through substituting by PureSource
This commit is contained in:
@@ -12,6 +12,7 @@ use App\DBAL\Types\LayerType;
|
||||
use App\DBAL\Types\RightType;
|
||||
use App\Domain\UserManagement\UserIdentityManager;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use App\Entity\Source\PureSource;
|
||||
|
||||
/**
|
||||
* This controller offers the standart routes for the template.
|
||||
@@ -28,8 +29,7 @@ final class DefaultController extends AbstractEntityController
|
||||
{
|
||||
$userIdentityManager = new UserIdentityManager($entityManager, $this->getUser());
|
||||
$user = $userIdentityManager->getUser();
|
||||
$requestedSource = new class() extends AbstractSource {
|
||||
};
|
||||
$requestedSource = new PureSource();
|
||||
$requestedSource->setSlug(SystemSlugType::IMPRINT);
|
||||
$requestedRight = new Right();
|
||||
$requestedRight->setSource($requestedSource);
|
||||
|
Reference in New Issue
Block a user