Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.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 : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/maze/wp-content/plugins/woocommerce-paypal-payments/src/ |
Upload File : |
<?php
/**
* The plugin module services.
*
* @package WooCommerce\PayPalCommerce
*/
declare (strict_types=1);
namespace WooCommerce\PayPalCommerce;
use WooCommerce\PayPalCommerce\Assets\AssetGetterFactory;
use WooCommerce\PayPalCommerce\Http\RedirectorInterface;
use WooCommerce\PayPalCommerce\Http\WpRedirector;
use WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Package;
use WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Properties\PluginProperties;
use WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Properties\Properties;
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
return array('ppcp.asset-version' => function (ContainerInterface $container): string {
return $container->get('ppcp.plugin-version');
}, 'assets.asset_getter_factory' => function (ContainerInterface $container): AssetGetterFactory {
$properties = $container->get(Package::PROPERTIES);
assert($properties instanceof Properties);
return new AssetGetterFactory((string) $properties->baseUrl(), $properties->basePath());
}, 'http.redirector' => function (ContainerInterface $container): RedirectorInterface {
return new WpRedirector();
}, 'ppcp.plugin-version' => function (ContainerInterface $container): string {
/** @var Properties $properties */
$properties = $container->get(Package::PROPERTIES);
return $properties->version();
}, 'ppcp.base-name' => function (ContainerInterface $container): string {
/** @var Properties $properties */
$properties = $container->get(Package::PROPERTIES);
return $properties->baseName();
}, 'ppcp.path-to-plugin-folder' => function (ContainerInterface $container): string {
/** @var Properties $properties */
$properties = $container->get(Package::PROPERTIES);
return $properties->basePath();
}, 'ppcp.path-to-plugin-main-file' => function (ContainerInterface $container): string {
/** @var PluginProperties $properties */
$properties = $container->get(Package::PROPERTIES);
/** @psalm-suppress UndefinedInterfaceMethod */
return $properties->pluginMainFile();
});