mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
32 lines
1,001 B
PHP
32 lines
1,001 B
PHP
<?php
|
|
/**
|
|
* The services of the session module.
|
|
*
|
|
* @package WooCommerce\PayPalCommerce\Session
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\Session;
|
|
|
|
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
|
|
use WooCommerce\PayPalCommerce\Session\Cancellation\CancelController;
|
|
use WooCommerce\PayPalCommerce\Session\Cancellation\CancelView;
|
|
|
|
return array(
|
|
'session.handler' => function ( ContainerInterface $container ) : SessionHandler {
|
|
return new SessionHandler();
|
|
},
|
|
'session.cancellation.view' => function ( ContainerInterface $container ) : CancelView {
|
|
return new CancelView(
|
|
$container->get( 'wcgateway.settings' ),
|
|
$container->get( 'wcgateway.funding-source.renderer' )
|
|
);
|
|
},
|
|
'session.cancellation.controller' => function ( ContainerInterface $container ) : CancelController {
|
|
return new CancelController(
|
|
$container->get( 'session.handler' ),
|
|
$container->get( 'session.cancellation.view' )
|
|
);
|
|
},
|
|
);
|