mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fixup! Add message handling for public view creation
This commit is contained in:
parent
c329a1f1f8
commit
78445f0d65
@ -68,6 +68,12 @@ final readonly class PostPublicViewMessageHandler implements MessageHandlerInter
|
|||||||
$dto = new WorkflowTransitionContextDTO($entityWorkflow);
|
$dto = new WorkflowTransitionContextDTO($entityWorkflow);
|
||||||
$dto->transition = $workflow->getEnabledTransition($entityWorkflow, $placeMetadata[self::TRANSITION_ON_VIEW]);
|
$dto->transition = $workflow->getEnabledTransition($entityWorkflow, $placeMetadata[self::TRANSITION_ON_VIEW]);
|
||||||
|
|
||||||
|
$this->logger->info(
|
||||||
|
self::LOG_PREFIX.'Apply transition to workflow after a first view',
|
||||||
|
['transition' => $placeMetadata[self::TRANSITION_ON_VIEW], 'entityWorkflowId' => $entityWorkflow->getId(),
|
||||||
|
'viewId' => $view->getId()]
|
||||||
|
);
|
||||||
|
|
||||||
$workflow->apply($entityWorkflow, $placeMetadata[self::TRANSITION_ON_VIEW], [
|
$workflow->apply($entityWorkflow, $placeMetadata[self::TRANSITION_ON_VIEW], [
|
||||||
'context' => $dto,
|
'context' => $dto,
|
||||||
'transitionAt' => $view->getViewAt(),
|
'transitionAt' => $view->getViewAt(),
|
||||||
@ -85,6 +91,11 @@ final readonly class PostPublicViewMessageHandler implements MessageHandlerInter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->logger->info(
|
||||||
|
self::LOG_PREFIX.'No transition applyied for this entityWorkflow after a view',
|
||||||
|
['entityWorkflowId' => $entityWorkflow->getId(), 'viewId' => $view->getId()]
|
||||||
|
);
|
||||||
|
|
||||||
$this->entityManager->clear();
|
$this->entityManager->clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ workflow:
|
|||||||
}
|
}
|
||||||
public_link:
|
public_link:
|
||||||
shared_explanation_until_remaining: >-
|
shared_explanation_until_remaining: >-
|
||||||
Ce partage sera actif jusqu'au {expireAt, time, short} à {expireAt, time, short}. {viewsCount, plural,
|
Ce partage sera actif jusqu'au {expireAt, date, long} à {expireAt, time, short}. {viewsCount, plural,
|
||||||
=0 {Ce partage n'a pas encore été visualisé}
|
=0 {Ce partage n'a pas encore été visualisé}
|
||||||
one {Ce partage a été visualisé une fois}
|
one {Ce partage a été visualisé une fois}
|
||||||
other {Ce partage a été visualisé # fois}
|
other {Ce partage a été visualisé # fois}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user