woocommerce-paypal-payments/modules/ppcp-wc-payment-tokens/services.php

21 lines
553 B
PHP

<?php
/**
* The vaulting module services.
*
* @package WooCommerce\PayPalCommerce\WcPaymentTokens
*/
declare(strict_types=1);
namespace WooCommerce\PayPalCommerce\WcPaymentTokens;
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
return array(
'wc-payment-tokens.wc-payment-tokens' => static function ( ContainerInterface $container ): WooCommercePaymentTokens {
return new WooCommercePaymentTokens(
$container->get( 'api.endpoint.payment-tokens' ),
$container->get( 'woocommerce.logger.woocommerce' )
);
},
);