Skip to content

Commit

Permalink
Prepend Winzou SM refund payment graph only if Sylius Refund installed (
Browse files Browse the repository at this point in the history
  • Loading branch information
lchrusciel authored Nov 7, 2024
2 parents b5e232d + 5cce669 commit 8ccc2ad
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ public function process(ContainerBuilder $container): void
]);
}

if ($this->hasWinzouStateMachineGraph('sylius_refund_refund_payment', $stateMachineDefaultAdapter, $stateMachineAdapterMapping)) {
if (
$container->hasExtension('sylius_refund') &&
$this->hasWinzouStateMachineGraph('sylius_refund_refund_payment', $stateMachineDefaultAdapter, $stateMachineAdapterMapping)
) {
$container->prependExtensionConfig('winzou_state_machine', [
'sylius_refund_refund_payment' => [
'callbacks' => [
Expand Down

0 comments on commit 8ccc2ad

Please sign in to comment.