HEX
Server: LiteSpeed
System: Linux server484.bertina.biz 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: alvnails (1268)
PHP: 8.2.29
Disabled: mail
Upload Files
File: /home/alvnails/public_html/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();
});