HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/CW-techs/wp-content/plugins/woocommerce-paypal-payments/src/services.php
<?php

/**
 * The plugin module services.
 *
 * @package WooCommerce\PayPalCommerce
 */
declare (strict_types=1);
namespace WooCommerce\PayPalCommerce;

use Dhii\Versions\StringVersionFactory;
use WooCommerce\PayPalCommerce\Http\RedirectorInterface;
use WooCommerce\PayPalCommerce\Http\WpRedirector;
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
use WpOop\WordPress\Plugin\PluginInterface;
return array('ppcp.plugin' => function (ContainerInterface $container): PluginInterface {
    $factory = new \WooCommerce\PayPalCommerce\FilePathPluginFactory(new StringVersionFactory());
    return $factory->createPluginFromFilePath(dirname(realpath(__FILE__), 2) . '/woocommerce-paypal-payments.php');
}, 'ppcp.asset-version' => function (ContainerInterface $container): string {
    $plugin = $container->get('ppcp.plugin');
    assert($plugin instanceof PluginInterface);
    return (string) $plugin->getVersion();
}, 'http.redirector' => function (ContainerInterface $container): RedirectorInterface {
    return new WpRedirector();
});