From 4354be5adcde15c052bc8fd5964aca4963452ee7 Mon Sep 17 00:00:00 2001 From: Alex P Date: Fri, 18 Nov 2022 16:47:21 +0200 Subject: [PATCH] Add a note about the modularity namespaces breaking change --- changelog.txt | 4 ++++ readme.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/changelog.txt b/changelog.txt index d81294f01..322fd1e7a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -18,6 +18,10 @@ * Enhancement - Hide Pay upon Invoice tab if not available for merchant #978 * Enhancement - Handle synced sub without upfront payment like free trial #936 * Enhancement - Isolate container and modularity deps #972 + **NOTE**: if you were extending/modifying the plugin using the modularity system, + you will need to add the `WooCommerce\PayPalCommerce\Vendor\` prefix for the container/modularity namespaces in your code, + that is `Psr\Container\ContainerInterface` becomes `WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface`, + and `Dhii\Modular\Module\ModuleInterface` becomes `WooCommerce\PayPalCommerce\Vendor\Dhii\Modular\Module\ModuleInterface`. * Enhancement - PUI gateway displayed on pay for order page when mandatory billing fields are left empty or country is unsupported #966 * Enhancement - When Brand Name field is left empty, PUI purchase fails #916 * Enhancement - Improve styling when using separate buttons #996 diff --git a/readme.txt b/readme.txt index ee324a706..6654c504e 100644 --- a/readme.txt +++ b/readme.txt @@ -99,6 +99,10 @@ Follow the steps below to connect the plugin to your PayPal account: * Enhancement - Hide Pay upon Invoice tab if not available for merchant #978 * Enhancement - Handle synced sub without upfront payment like free trial #936 * Enhancement - Isolate container and modularity deps #972 + **NOTE**: if you were extending/modifying the plugin using the modularity system, + you will need to add the `WooCommerce\PayPalCommerce\Vendor\` prefix for the container/modularity namespaces in your code, + that is `Psr\Container\ContainerInterface` becomes `WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface`, + and `Dhii\Modular\Module\ModuleInterface` becomes `WooCommerce\PayPalCommerce\Vendor\Dhii\Modular\Module\ModuleInterface`. * Enhancement - PUI gateway displayed on pay for order page when mandatory billing fields are left empty or country is unsupported #966 * Enhancement - When Brand Name field is left empty, PUI purchase fails #916 * Enhancement - Improve styling when using separate buttons #996