mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
27 lines
574 B
PHP
27 lines
574 B
PHP
|
<?php
|
||
|
/**
|
||
|
* The Settings module services.
|
||
|
*
|
||
|
* @package WooCommerce\PayPalCommerce\Settings
|
||
|
*/
|
||
|
|
||
|
declare( strict_types = 1 );
|
||
|
|
||
|
namespace WooCommerce\PayPalCommerce\Settings;
|
||
|
|
||
|
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
|
||
|
|
||
|
return array(
|
||
|
'settings.url' => static function ( ContainerInterface $container ) : string {
|
||
|
/**
|
||
|
* The path cannot be false.
|
||
|
*
|
||
|
* @psalm-suppress PossiblyFalseArgument
|
||
|
*/
|
||
|
return plugins_url(
|
||
|
'/modules/ppcp-settings/',
|
||
|
dirname( realpath( __FILE__ ), 3 ) . '/woocommerce-paypal-payments.php'
|
||
|
);
|
||
|
},
|
||
|
);
|