From 8b76e5fcb7d5a6ca86effd73f770cfb0c71426e1 Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Mon, 17 Feb 2025 16:47:59 +0100
Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1=20Comment=20OnboardingRESTControll?=
=?UTF-8?q?er?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
modules/ppcp-onboarding/src/OnboardingRESTController.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/ppcp-onboarding/src/OnboardingRESTController.php b/modules/ppcp-onboarding/src/OnboardingRESTController.php
index d95b0a9d3..863bed599 100644
--- a/modules/ppcp-onboarding/src/OnboardingRESTController.php
+++ b/modules/ppcp-onboarding/src/OnboardingRESTController.php
@@ -136,6 +136,8 @@ class OnboardingRESTController {
$environment = $this->container->get( 'onboarding.environment' );
$state = $this->container->get( 'onboarding.state' );
+ // Legacy onboarding module; using `State::STATE_ONBOARDED` checks is valid here.
+
return array(
'environment' => $environment->current_environment(),
'onboarded' => ( $state->current_state() >= State::STATE_ONBOARDED ),