mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
DX: fix cs
This commit is contained in:
parent
7915aae86f
commit
bd324753f3
@ -49,8 +49,7 @@ return static function (ContainerConfigurator $container) {
|
|||||||
|
|
||||||
$services
|
$services
|
||||||
->set(ChillDocumentLockManager::class)
|
->set(ChillDocumentLockManager::class)
|
||||||
->decorate(DocumentLockManagerInterface::class)
|
->decorate(DocumentLockManagerInterface::class);
|
||||||
;
|
|
||||||
|
|
||||||
$services
|
$services
|
||||||
->set(AuthorizationManager::class);
|
->set(AuthorizationManager::class);
|
||||||
|
@ -22,7 +22,7 @@ class ChillDocumentLockManager implements DocumentLockManagerInterface
|
|||||||
private const LOCK_DURATION = 60 * 30;
|
private const LOCK_DURATION = 60 * 30;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Number of seconds to keep the lock after the delete lock operation
|
* Number of seconds to keep the lock after the delete lock operation.
|
||||||
*/
|
*/
|
||||||
private const LOCK_GRACEFUL_DURATION_TIME = 3;
|
private const LOCK_GRACEFUL_DURATION_TIME = 3;
|
||||||
|
|
||||||
|
@ -87,8 +87,8 @@ final class ChillDocumentManager implements DocumentManagerInterface
|
|||||||
|
|
||||||
public function deleteLock(Document $document): void
|
public function deleteLock(Document $document): void
|
||||||
{
|
{
|
||||||
if (false ===$this->documentLockManager->deleteLock($document, $this->request)) {
|
if (false === $this->documentLockManager->deleteLock($document, $this->request)) {
|
||||||
throw new \RuntimeException("could not remove the lock");
|
throw new RuntimeException('could not remove the lock');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user