Skip to content

EC-CUBE 4.2/4.3 両対応#10

Open
dotani1111 wants to merge 1 commit intoEC-CUBE:4.2from
dotani1111:feature/support-eccube-42-43
Open

EC-CUBE 4.2/4.3 両対応#10
dotani1111 wants to merge 1 commit intoEC-CUBE:4.2from
dotani1111:feature/support-eccube-42-43

Conversation

@dotani1111
Copy link

@dotani1111 dotani1111 commented Jan 16, 2026

概要

GMCプラグインをEC-CUBE 4.2および4.3に対応しました。

対応バージョン

項目 変更前 変更後
プラグインバージョン 1.1.5 2.0.0
対応EC-CUBE 4.0系 4.2 / 4.3
対応PHP 7.4+ 8.1+

主な変更点

  1. OAuth2ライブラリの変更対応

    • Trikoder\Bundle\OAuth2BundleLeague\Bundle\OAuth2ServerBundle
  2. APIプラグイン名前空間の変更

    • Plugin\ApiPlugin\Api42
  3. ContainerInterfaceの互換性対応

    • Psr\Container\ContainerInterfaceを使用して4.2/4.3両対応
  4. composer.json更新

    • ec-cube/api42: ^4.2 || ^4.3 に変更

修正ファイル

  • PluginManager.php - OAuth2クライアント登録をLeague実装に変更
  • composer.json - バージョン・依存関係更新
  • Resource/config/services.yaml - Trikoder関連削除
  • GraphQL/DeliveryQuery.php - Api42名前空間に変更
  • GraphQL/SiteVerifyMutation.php - Api42名前空間に変更
  • GraphQL/WebHookMutation.php - Api42名前空間に変更
  • Tests/GraphQL/SiteVerifyMutationTest.php - PHP 8対応

追加ファイル

  • doc/SPECIFICATION.md - プラグイン仕様書
  • doc/UPGRADE_42_43.md - EC-CUBE 4.2/4.3両対応ガイド

実行したテスト

ユニットテスト

./vendor/bin/phpunit app/Plugin/GMC/Tests/

✅ OK (1 test, 2 assertions)

動作確認(EC-CUBE 4.3 + PHP 8.1+)

項目 結果
プラグインインストール
プラグイン有効化
/admin/gmc/config 画面表示
OAuth2クライアント登録
プラグイン無効化

動作確認(EC-CUBE 4.2 + PHP 8.1)

項目 結果
プラグインインストール
プラグイン有効化
/admin/gmc/config 画面表示

備考

  • Google Merchant Center連携設定は現在受付停止中のため、実際の連携フローは未検証
  • Api42プラグインのインストールが前提条件

- OAuth2ライブラリをLeague OAuth2 Server Bundleに変更
- APIプラグイン名前空間をPlugin\Api42に変更
- ContainerInterfaceをPsr\Container\ContainerInterfaceに変更
- composer.jsonのec-cube/api42依存を^4.2 || ^4.3に更新
- PHP 8対応(テストの型宣言追加)
- ドキュメント追加(SPECIFICATION.md, UPGRADE_42_43.md)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant