mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Remove static for private method callback
This commit is contained in:
parent
5604809230
commit
76cc040648
1 changed files with 2 additions and 2 deletions
|
@ -158,14 +158,14 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
|||
*/
|
||||
add_action(
|
||||
'woocommerce_paypal_payments_gateway_migrate',
|
||||
static function () use ( $container ) {
|
||||
function () use ( $container ) {
|
||||
$detector = $container->get( 'settings.service.branded-experience-activation-detector' );
|
||||
assert( $detector instanceof ActivationDetector );
|
||||
|
||||
$general_settings = $container->get( 'settings.data.general' );
|
||||
assert( $general_settings instanceof GeneralSettings );
|
||||
|
||||
self::get_and_persist_branded_experience_path( $detector, $general_settings );
|
||||
$this->get_and_persist_branded_experience_path( $detector, $general_settings );
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue