mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix: Remove obsolete code.
This commit is contained in:
parent
9a34aa59bb
commit
7f721da08a
@ -95,26 +95,6 @@ final class ChillWopi implements WopiInterface
|
|||||||
'UserInfo' => (string) $this->cache->getItem($userCacheKey)->get(),
|
'UserInfo' => (string) $this->cache->getItem($userCacheKey)->get(),
|
||||||
]
|
]
|
||||||
)));
|
)));
|
||||||
$response = $this->wopi->checkFileInfo($fileId, $accessToken, $request);
|
|
||||||
$document = $this->documentManager->findByDocumentId($fileId);
|
|
||||||
|
|
||||||
$body = json_decode((string) $response->getBody(), true);
|
|
||||||
|
|
||||||
return $response
|
|
||||||
->withBody(
|
|
||||||
$this
|
|
||||||
->psr17
|
|
||||||
->createStream(
|
|
||||||
(string) json_encode(
|
|
||||||
$body +
|
|
||||||
[
|
|
||||||
'Version' => sprintf('v%s', $this->documentManager->getVersion($document)),
|
|
||||||
// TODO: Add column 'LastModifiedDate' in StoredObject entity
|
|
||||||
'LastModifiedTime' => $this->documentManager->getLastModifiedDate($document)->format('Y-m-d\TH:i:s.uP'),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function deleteFile(string $fileId, ?string $accessToken, RequestInterface $request): ResponseInterface
|
public function deleteFile(string $fileId, ?string $accessToken, RequestInterface $request): ResponseInterface
|
||||||
|
Loading…
x
Reference in New Issue
Block a user