New Settings UI: Disable settings in send-only countries

This commit is contained in:
Himad M 2024-12-19 14:36:26 +01:00
parent cb8c3f8726
commit a3989401de
No known key found for this signature in database
GPG key ID: 5FC769E9888A7B98
5 changed files with 36 additions and 7 deletions

View file

@ -63,6 +63,7 @@ return array(
return new CommonSettings(
$container->get( 'api.shop.country' ),
$container->get( 'api.shop.currency.getter' )->get(),
$container->get( 'wcgateway.is-send-only-country' )
);
},
'settings.rest.onboarding' => static function ( ContainerInterface $container ) : OnboardingRestEndpoint {