mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 06:01:35 +01:00
Saved draft of marco for dto
This commit is contained in:
parent
29b8414711
commit
74b45cb24d
@ -26,6 +26,8 @@ class SourceController extends FOSRestController
|
||||
public function show(Request $request, int $id): Response
|
||||
{
|
||||
$source = $this->loadSource($request, $id);
|
||||
$assembler = $this->get(SourceDTOAssember::class);
|
||||
$dto = $assembler->build($source, $this->getUser());
|
||||
$view = $this->view($source, 200)
|
||||
->setTemplate((new SourceTemplateFactory($source, $request))->getTemplatePath())
|
||||
->setTemplateVar('source');
|
||||
|
@ -25,7 +25,6 @@ class AndOperation extends AbstractOperation
|
||||
foreach ($this->operands->toArray() as $operand) {
|
||||
if (!$operand->getResult()->getBool()) {
|
||||
$this->result->setAll(false);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Structur\Facade\Security\Source;
|
||||
|
||||
use App\Entity\NodeInterface;
|
||||
use App\Entity\SourceInterface;
|
||||
use App\Entity\Interfaces\NodeInterface;
|
||||
use App\Entity\Interfaces\SourceInterface;
|
||||
use App\Entity\User;
|
||||
use App\DBAL\Types\RightType;
|
||||
use App\DBAL\Types\LayerType;
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
namespace App\Structur\Facade\Security\Source;
|
||||
|
||||
use App\Entity\NameSourceInterface;
|
||||
use App\Entity\Interfaces\NameSourceInterface;
|
||||
use App\Entity\User;
|
||||
use App\Entity\UserSourceInterface;
|
||||
use App\Entity\Interfaces\UserSourceInterface;
|
||||
use App\DBAL\Types\RightType;
|
||||
use App\DBAL\Types\LayerType;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user