Move payment tokens repository to vaulting package

This commit is contained in:
dinamiko 2021-09-17 17:11:36 +02:00
parent 60dc34e510
commit 2db0162988
11 changed files with 19 additions and 23 deletions

View file

@ -13,4 +13,9 @@ return array(
'vaulting.payment-tokens-renderer' => static function (): PaymentTokensRendered {
return new PaymentTokensRendered();
},
'vaulting.repository.payment-token' => static function ( $container ): PaymentTokenRepository {
$factory = $container->get( 'api.factory.payment-token' );
$endpoint = $container->get( 'api.endpoint.payment-token' );
return new PaymentTokenRepository( $factory, $endpoint );
},
);