mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
remove temporary method
This commit is contained in:
parent
45323e9136
commit
e5737b0c49
@ -201,36 +201,4 @@ class DocumentPersonController extends AbstractController
|
|||||||
['document' => $document, 'person' => $person]
|
['document' => $document, 'person' => $person]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Route(path: '/{id}/signature', name: 'person_document_signature', methods: 'GET')]
|
|
||||||
public function signature(Person $person, PersonDocument $document): Response
|
|
||||||
{
|
|
||||||
$this->denyAccessUnlessGranted('CHILL_PERSON_SEE', $person);
|
|
||||||
$this->denyAccessUnlessGranted('CHILL_PERSON_DOCUMENT_SEE', $document);
|
|
||||||
|
|
||||||
$event = new PrivacyEvent($person, [
|
|
||||||
'element_class' => PersonDocument::class,
|
|
||||||
'element_id' => $document->getId(),
|
|
||||||
'action' => 'show',
|
|
||||||
]);
|
|
||||||
$this->eventDispatcher->dispatch($event, PrivacyEvent::PERSON_PRIVACY_EVENT);
|
|
||||||
|
|
||||||
$storedObject = $document->getObject();
|
|
||||||
$content = $this->storedObjectManagerInterface->read($storedObject);
|
|
||||||
$zones = $this->PDFSignatureZoneParser->findSignatureZones($content);
|
|
||||||
|
|
||||||
$signature = [];
|
|
||||||
$signature['id'] = 1;
|
|
||||||
$signature['storedObject'] = [ // TEMP
|
|
||||||
'filename' => $storedObject->getFilename(),
|
|
||||||
'iv' => $storedObject->getIv(),
|
|
||||||
'keyInfos' => $storedObject->getKeyInfos(),
|
|
||||||
];
|
|
||||||
$signature['zones'] = $zones;
|
|
||||||
|
|
||||||
return $this->render(
|
|
||||||
'@ChillDocStore/PersonDocument/signature.html.twig',
|
|
||||||
['document' => $document, 'person' => $person, 'signature' => $signature]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user