From cf45042813de7a14c60456e7b5af742b23d434ee Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Sat, 28 Nov 2026 17:34:27 +0100 Subject: [PATCH 1/8] workflows/api_refs.yaml: use PHP 8.4 --- .github/workflows/api_refs.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/api_refs.yaml b/.github/workflows/api_refs.yaml index 0a688d99e6..edc7b80d72 100644 --- a/.github/workflows/api_refs.yaml +++ b/.github/workflows/api_refs.yaml @@ -90,9 +90,10 @@ jobs: exit 1 fi - - name: Disable PHP coverage + - name: Set up PHP uses: shivammathur/setup-php@v2 with: + php-version: "8.4" coverage: none - name: Set up node From de612282790e353396430129664c588797eeab32 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Sun, 29 Nov 2026 01:33:06 +0100 Subject: [PATCH 2/8] api_refs.sh: Fix ApiPlatform recipe bundles.php Command "ibexa:openapi" is not defined. --- tools/api_refs/api_refs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/api_refs/api_refs.sh b/tools/api_refs/api_refs.sh index 7899fbc48a..f004b9c883 100755 --- a/tools/api_refs/api_refs.sh +++ b/tools/api_refs/api_refs.sh @@ -229,6 +229,7 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then fi; echo 'Dump REST OpenAPI schema… '; +grep -q 'ApiPlatformBundle' config/bundles.php || perl -pi -e 's/^return \[$/return [\n ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle::class => [\x27all\x27 => true],/' config/bundles.php $PHP_BINARY bin/console ibexa:openapi --yaml \ | sed "s@info:@info:\n x-logo:\n url: 'https://doc.ibexa.co/en/latest/images/ibexa-dxp-logo.png'@" \ > openapi.yaml; From 2b27190f8bab74111a321a5d6d3d23bd4e5887c9 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Thu, 3 Dec 2026 16:34:16 +0100 Subject: [PATCH 3/8] Revert "api_refs.sh: Fix ApiPlatform recipe bundles.php" This reverts commit de612282790e353396430129664c588797eeab32. --- tools/api_refs/api_refs.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/api_refs/api_refs.sh b/tools/api_refs/api_refs.sh index f004b9c883..7899fbc48a 100755 --- a/tools/api_refs/api_refs.sh +++ b/tools/api_refs/api_refs.sh @@ -229,7 +229,6 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then fi; echo 'Dump REST OpenAPI schema… '; -grep -q 'ApiPlatformBundle' config/bundles.php || perl -pi -e 's/^return \[$/return [\n ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle::class => [\x27all\x27 => true],/' config/bundles.php $PHP_BINARY bin/console ibexa:openapi --yaml \ | sed "s@info:@info:\n x-logo:\n url: 'https://doc.ibexa.co/en/latest/images/ibexa-dxp-logo.png'@" \ > openapi.yaml; From c7061288b855cf3fa221808a13972d84187823b8 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Sun, 29 Nov 2026 01:33:06 +0100 Subject: [PATCH 4/8] api_refs.sh: Fix ApiPlatform recipe bundles.php Command "ibexa:openapi" is not defined. --- tools/api_refs/api_refs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/api_refs/api_refs.sh b/tools/api_refs/api_refs.sh index 7899fbc48a..f004b9c883 100755 --- a/tools/api_refs/api_refs.sh +++ b/tools/api_refs/api_refs.sh @@ -229,6 +229,7 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then fi; echo 'Dump REST OpenAPI schema… '; +grep -q 'ApiPlatformBundle' config/bundles.php || perl -pi -e 's/^return \[$/return [\n ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle::class => [\x27all\x27 => true],/' config/bundles.php $PHP_BINARY bin/console ibexa:openapi --yaml \ | sed "s@info:@info:\n x-logo:\n url: 'https://doc.ibexa.co/en/latest/images/ibexa-dxp-logo.png'@" \ > openapi.yaml; From a6a1844ca68a2c4ebc11dfa6584bd6f5e4489b67 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Thu, 3 Dec 2026 17:33:34 +0100 Subject: [PATCH 5/8] "Don't use recipes-dev" test --- tools/api_refs/api_refs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/api_refs/api_refs.sh b/tools/api_refs/api_refs.sh index f004b9c883..ab5fbf186b 100755 --- a/tools/api_refs/api_refs.sh +++ b/tools/api_refs/api_refs.sh @@ -75,7 +75,7 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then cp $AUTH_JSON ./; fi; $COMPOSER_BINARY config repositories.ibexa composer https://updates.ibexa.co; - $COMPOSER_BINARY config extra.symfony.endpoint "https://api.github.com/repos/ibexa/recipes-dev/contents/index.json?ref=flex/main"; + #$COMPOSER_BINARY config extra.symfony.endpoint "https://api.github.com/repos/ibexa/recipes-dev/contents/index.json?ref=flex/main"; $COMPOSER_BINARY require ibexa/$DXP_EDITION:$DXP_VERSION --no-interaction --update-with-all-dependencies --no-install --ignore-platform-reqs --no-scripts; elif [[ "$DXP_VERSION" == *"-rc"* ]]; then COMPOSER_AUTH="$(tr -d '\n' < $AUTH_JSON)" $COMPOSER_BINARY create-project ibexa/website-skeleton:$DXP_VERSION . --no-interaction --ignore-platform-reqs --no-scripts --stability=rc; @@ -229,7 +229,7 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then fi; echo 'Dump REST OpenAPI schema… '; -grep -q 'ApiPlatformBundle' config/bundles.php || perl -pi -e 's/^return \[$/return [\n ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle::class => [\x27all\x27 => true],/' config/bundles.php +#grep -q 'ApiPlatformBundle' config/bundles.php || perl -pi -e 's/^return \[$/return [\n ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle::class => [\x27all\x27 => true],/' config/bundles.php $PHP_BINARY bin/console ibexa:openapi --yaml \ | sed "s@info:@info:\n x-logo:\n url: 'https://doc.ibexa.co/en/latest/images/ibexa-dxp-logo.png'@" \ > openapi.yaml; From fc177c246110326888ac8664a7053644d82da58f Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Fri, 4 Dec 2026 10:40:29 +0100 Subject: [PATCH 6/8] Revert ""Don't use recipes-dev" test" This reverts commit a6a1844ca68a2c4ebc11dfa6584bd6f5e4489b67. --- tools/api_refs/api_refs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/api_refs/api_refs.sh b/tools/api_refs/api_refs.sh index ab5fbf186b..f004b9c883 100755 --- a/tools/api_refs/api_refs.sh +++ b/tools/api_refs/api_refs.sh @@ -75,7 +75,7 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then cp $AUTH_JSON ./; fi; $COMPOSER_BINARY config repositories.ibexa composer https://updates.ibexa.co; - #$COMPOSER_BINARY config extra.symfony.endpoint "https://api.github.com/repos/ibexa/recipes-dev/contents/index.json?ref=flex/main"; + $COMPOSER_BINARY config extra.symfony.endpoint "https://api.github.com/repos/ibexa/recipes-dev/contents/index.json?ref=flex/main"; $COMPOSER_BINARY require ibexa/$DXP_EDITION:$DXP_VERSION --no-interaction --update-with-all-dependencies --no-install --ignore-platform-reqs --no-scripts; elif [[ "$DXP_VERSION" == *"-rc"* ]]; then COMPOSER_AUTH="$(tr -d '\n' < $AUTH_JSON)" $COMPOSER_BINARY create-project ibexa/website-skeleton:$DXP_VERSION . --no-interaction --ignore-platform-reqs --no-scripts --stability=rc; @@ -229,7 +229,7 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then fi; echo 'Dump REST OpenAPI schema… '; -#grep -q 'ApiPlatformBundle' config/bundles.php || perl -pi -e 's/^return \[$/return [\n ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle::class => [\x27all\x27 => true],/' config/bundles.php +grep -q 'ApiPlatformBundle' config/bundles.php || perl -pi -e 's/^return \[$/return [\n ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle::class => [\x27all\x27 => true],/' config/bundles.php $PHP_BINARY bin/console ibexa:openapi --yaml \ | sed "s@info:@info:\n x-logo:\n url: 'https://doc.ibexa.co/en/latest/images/ibexa-dxp-logo.png'@" \ > openapi.yaml; From 694c0e018c02965047b28c6a0530f618031ad155 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Fri, 4 Dec 2026 10:43:30 +0100 Subject: [PATCH 7/8] Move and comment temporary fix --- tools/api_refs/api_refs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/api_refs/api_refs.sh b/tools/api_refs/api_refs.sh index f004b9c883..6027daf216 100755 --- a/tools/api_refs/api_refs.sh +++ b/tools/api_refs/api_refs.sh @@ -226,10 +226,13 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then echo 'Set up DXP recipes…'; git init -b main && git add . && git commit -m "Installed Ibexa Commerce" > /dev/null; $COMPOSER_BINARY recipes:install ibexa/$DXP_EDITION --force --reset --no-interaction; + if [[ "$DXP_VERSION" == *".x-dev" ]]; then + # Temporary fix + grep -q 'ApiPlatformBundle' config/bundles.php || perl -pi -e 's/^return \[$/return [\n ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle::class => [\x27all\x27 => true],/' config/bundles.php + fi; fi; echo 'Dump REST OpenAPI schema… '; -grep -q 'ApiPlatformBundle' config/bundles.php || perl -pi -e 's/^return \[$/return [\n ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle::class => [\x27all\x27 => true],/' config/bundles.php $PHP_BINARY bin/console ibexa:openapi --yaml \ | sed "s@info:@info:\n x-logo:\n url: 'https://doc.ibexa.co/en/latest/images/ibexa-dxp-logo.png'@" \ > openapi.yaml; From 91aaa169e57645ab09494f183ae2ccff3ef6cfa7 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Fri, 4 Dec 2026 15:23:39 +0100 Subject: [PATCH 8/8] Test ibexa/recipes-dev#295 --- tools/api_refs/api_refs.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/api_refs/api_refs.sh b/tools/api_refs/api_refs.sh index 6027daf216..52aa530143 100755 --- a/tools/api_refs/api_refs.sh +++ b/tools/api_refs/api_refs.sh @@ -75,7 +75,7 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then cp $AUTH_JSON ./; fi; $COMPOSER_BINARY config repositories.ibexa composer https://updates.ibexa.co; - $COMPOSER_BINARY config extra.symfony.endpoint "https://api.github.com/repos/ibexa/recipes-dev/contents/index.json?ref=flex/main"; + $COMPOSER_BINARY config extra.symfony.endpoint "https://api.github.com/repos/ibexa/recipes-dev/contents/index.json?ref=flex/pull-295"; $COMPOSER_BINARY require ibexa/$DXP_EDITION:$DXP_VERSION --no-interaction --update-with-all-dependencies --no-install --ignore-platform-reqs --no-scripts; elif [[ "$DXP_VERSION" == *"-rc"* ]]; then COMPOSER_AUTH="$(tr -d '\n' < $AUTH_JSON)" $COMPOSER_BINARY create-project ibexa/website-skeleton:$DXP_VERSION . --no-interaction --ignore-platform-reqs --no-scripts --stability=rc; @@ -226,10 +226,6 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then echo 'Set up DXP recipes…'; git init -b main && git add . && git commit -m "Installed Ibexa Commerce" > /dev/null; $COMPOSER_BINARY recipes:install ibexa/$DXP_EDITION --force --reset --no-interaction; - if [[ "$DXP_VERSION" == *".x-dev" ]]; then - # Temporary fix - grep -q 'ApiPlatformBundle' config/bundles.php || perl -pi -e 's/^return \[$/return [\n ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle::class => [\x27all\x27 => true],/' config/bundles.php - fi; fi; echo 'Dump REST OpenAPI schema… ';