refactor: Update WOPI related stuff based on upstream changes.

This commit is contained in:
Pol Dellaiera 2021-09-14 15:08:00 +02:00
parent fe533bc716
commit 951d686366
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ declare(strict_types=1);
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
use ChampsLibres\AsyncUploaderBundle\TempUrl\TempUrlGeneratorInterface;
use ChampsLibres\WopiLib\WopiInterface;
use ChampsLibres\WopiLib\Service\Contract\WopiInterface;
use Chill\WopiBundle\Service\Wopi\ChillWopi;
return static function (ContainerConfigurator $container) {

View File

@ -11,7 +11,7 @@ namespace Chill\WopiBundle\Service\Wopi;
use ChampsLibres\AsyncUploaderBundle\TempUrl\TempUrlGeneratorInterface;
use ChampsLibres\WopiLib\Discovery\WopiDiscoveryInterface;
use ChampsLibres\WopiLib\WopiInterface;
use ChampsLibres\WopiLib\Service\Contract\WopiInterface;
use Chill\DocStoreBundle\Repository\StoredObjectRepository;
use Exception;
use loophp\psr17\Psr17Interface;
@ -228,7 +228,7 @@ final class ChillWopi implements WopiInterface
->withBody($this->psr17->createStream((string) json_encode([])));
}
public function putRelativeFile(string $fileId, ?string $accessToken, RequestInterface $request): ResponseInterface
public function putRelativeFile(string $fileId, string $accessToken, ?string $suggestedTarget, ?string $relativeTarget, bool $overwriteRelativeTarget, int $size, RequestInterface $request): ResponseInterface
{
return $this->getDebugResponse(__FUNCTION__, $request);
}