| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public static function log($action, $documentUid, $objectIdentifier, $response) |
||
| 31 | { |
||
| 32 | |||
| 33 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); |
||
| 34 | $documentTransferLogRepository = $objectManager->get(DocumentTransferLogRepository::class); |
||
| 35 | |||
| 36 | $documentTransferLog = $objectManager->get(DocumentTransferLog::class); |
||
| 37 | $documentTransferLog->setResponse(print_r($response, true)); |
||
| 38 | $documentTransferLog->setAction($action); |
||
| 39 | $documentTransferLog->setDocumentUid($documentUid); |
||
| 40 | $documentTransferLog->setObjectIdentifier($objectIdentifier); |
||
| 41 | $documentTransferLog->setDate(new \DateTime()); |
||
| 42 | $documentTransferLogRepository->add($documentTransferLog); |
||
| 43 | } |
||
| 46 |