HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/lesanew/www/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-session/services.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' )
		);
	},
);