Fixed: [wopi] effectively use the ChillDocumentLockManager

This commit is contained in:
Julien Fastré 2023-01-13 18:15:51 +01:00
parent b2dec3e587
commit 239a978adb
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -15,6 +15,7 @@ use ChampsLibres\AsyncUploaderBundle\TempUrl\TempUrlGeneratorInterface;
use ChampsLibres\WopiBundle\Contracts\AuthorizationManagerInterface; use ChampsLibres\WopiBundle\Contracts\AuthorizationManagerInterface;
use ChampsLibres\WopiBundle\Contracts\UserManagerInterface; use ChampsLibres\WopiBundle\Contracts\UserManagerInterface;
use ChampsLibres\WopiBundle\Service\Wopi as CLWopi; use ChampsLibres\WopiBundle\Service\Wopi as CLWopi;
use ChampsLibres\WopiLib\Contract\Service\DocumentLockManagerInterface;
use ChampsLibres\WopiLib\Contract\Service\DocumentManagerInterface; use ChampsLibres\WopiLib\Contract\Service\DocumentManagerInterface;
use Chill\WopiBundle\Service\Wopi\AuthorizationManager; use Chill\WopiBundle\Service\Wopi\AuthorizationManager;
use Chill\WopiBundle\Service\Wopi\ChillDocumentLockManager; use Chill\WopiBundle\Service\Wopi\ChillDocumentLockManager;
@ -47,7 +48,9 @@ return static function (ContainerConfigurator $container) {
->alias(DocumentManagerInterface::class, ChillDocumentManager::class); ->alias(DocumentManagerInterface::class, ChillDocumentManager::class);
$services $services
->set(ChillDocumentLockManager::class); ->set(ChillDocumentLockManager::class)
->decorate(DocumentLockManagerInterface::class)
;
$services $services
->set(AuthorizationManager::class); ->set(AuthorizationManager::class);