♻️ Adapt the REST endpoint to the new data model

This commit is contained in:
Philipp Stracker 2025-01-29 16:07:24 +01:00
parent cd9ff71cd0
commit 16d8598ab6
No known key found for this signature in database
2 changed files with 85 additions and 89 deletions

View file

@ -125,6 +125,11 @@ return array(
$container->get( 'webhook.status.simulation' )
);
},
'settings.rest.settings' => static function ( ContainerInterface $container ) : SettingsRestEndpoint {
return new SettingsRestEndpoint(
$container->get( 'settings.data.settings' )
);
},
'settings.casual-selling.supported-countries' => static function ( ContainerInterface $container ) : array {
return array(
'AR',
@ -229,12 +234,6 @@ return array(
$container->get( 'api.merchant_id' ) !== ''
);
},
'settings.rest.settings' => static function( ContainerInterface $container ): SettingsRestEndpoint {
return new SettingsRestEndpoint(
$container->get( 'settings.data.settings' ),
$container->get( 'woocommerce.logger.woocommerce' ),
);
},
'settings.rest.todos' => static function ( ContainerInterface $container ) : TodosRestEndpoint {
return new TodosRestEndpoint(
$container->get( 'settings.data.todos' ),