Add logger to pending services

This commit is contained in:
dinamiko 2021-09-24 10:33:21 +02:00
parent 3fa3786b91
commit a5f308cb9d
2 changed files with 8 additions and 5 deletions

View file

@ -72,19 +72,19 @@ return array(
return 'WC-';
},
'api.bearer' => static function ( $container ): Bearer {
$cache = new Cache( 'ppcp-paypal-bearer' );
$key = $container->get( 'api.key' );
$secret = $container->get( 'api.secret' );
$host = $container->get( 'api.host' );
$logger = $container->get( 'woocommerce.logger.woocommerce' );
$settings = $container->get( 'wcgateway.settings' );
return new PayPalBearer(
$cache,
$host,
$key,
$secret,
$logger
$logger,
$settings
);
},
'api.endpoint.partners' => static function ( $container ) : PartnersEndpoint {