Remove old settings

This commit is contained in:
Narek Zakarian 2022-10-31 15:57:47 +04:00
parent f9e374e540
commit 9efc65cc93
3 changed files with 70 additions and 518 deletions

View file

@ -99,5 +99,13 @@ return array(
);
},
'wcgateway.settings.fields' => require __DIR__ . '/connection-tab-settings.php',
'wcgateway.settings.fields' => function ( ContainerInterface $container, array $fields ): array {
$get_connection_tab_fields = require __DIR__ . '/connection-tab-settings.php';
$connection_tab_fields = $get_connection_tab_fields( $container, $fields ) ?? array();
$get_pay_later_tab_fields = require __DIR__ . '/pay-later-tab-settings.php';
$pay_later_tab_fields = $get_pay_later_tab_fields( $container, $fields ) ?? array();
return array_merge( $connection_tab_fields, $pay_later_tab_fields );
},
);