mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Use the subscription map helper
This commit is contained in:
parent
07db58d663
commit
be071decfb
1 changed files with 7 additions and 0 deletions
|
@ -138,6 +138,9 @@ return array(
|
|||
$settings_tab_map_helper = $container->get( 'compat.settings.settings_tab_map_helper' );
|
||||
assert( $settings_tab_map_helper instanceof SettingsTabMapHelper );
|
||||
|
||||
$subscription_map_helper = $container->get( 'compat.settings.subscription_map_helper' );
|
||||
assert( $subscription_map_helper instanceof SubscriptionSettingsMapHelper );
|
||||
|
||||
return array(
|
||||
new SettingsMap(
|
||||
$container->get( 'settings.data.general' ),
|
||||
|
@ -181,6 +184,10 @@ return array(
|
|||
*/
|
||||
$styling_settings_map_helper->map()
|
||||
),
|
||||
new SettingsMap(
|
||||
$container->get( 'settings.data.settings' ),
|
||||
$subscription_map_helper->map()
|
||||
),
|
||||
);
|
||||
},
|
||||
'compat.settings.settings_map_helper' => static function( ContainerInterface $container ) : SettingsMapHelper {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue