mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
delete some references to modules.locale
This commit is contained in:
parent
df4a4b7fef
commit
a3ee3368da
6 changed files with 5 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,4 +5,4 @@ phpunit.xml
|
||||||
.phpunit.result.cache
|
.phpunit.result.cache
|
||||||
composer.lock
|
composer.lock
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
modules.local/ppcp-button/assets/*
|
modules/ppcp-button/assets/*
|
||||||
|
|
|
@ -89,7 +89,7 @@ return array(
|
||||||
},
|
},
|
||||||
'button.url' => static function ( ContainerInterface $container ): string {
|
'button.url' => static function ( ContainerInterface $container ): string {
|
||||||
return plugins_url(
|
return plugins_url(
|
||||||
'/modules.local/ppcp-button/',
|
'/modules/ppcp-button/',
|
||||||
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
|
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -108,7 +108,7 @@ return array(
|
||||||
|
|
||||||
'onboarding.url' => static function ( ContainerInterface $container ): string {
|
'onboarding.url' => static function ( ContainerInterface $container ): string {
|
||||||
return plugins_url(
|
return plugins_url(
|
||||||
'/modules.local/ppcp-onboarding/',
|
'/modules/ppcp-onboarding/',
|
||||||
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
|
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -1556,7 +1556,7 @@ return array(
|
||||||
},
|
},
|
||||||
'wcgateway.url' => static function ( ContainerInterface $container ): string {
|
'wcgateway.url' => static function ( ContainerInterface $container ): string {
|
||||||
return plugins_url(
|
return plugins_url(
|
||||||
'/modules.local/ppcp-wc-gateway/',
|
'/modules/ppcp-wc-gateway/',
|
||||||
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
|
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<filter>
|
<filter>
|
||||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||||
<directory suffix=".php">./src</directory>
|
<directory suffix=".php">./src</directory>
|
||||||
<directory suffix=".php">./modules.local/</directory>
|
<directory suffix=".php">./modules/</directory>
|
||||||
</whitelist>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
<testsuites>
|
<testsuites>
|
||||||
|
|
|
@ -36,9 +36,6 @@ use Inpsyde\PayPalCommerce\ApiClient\Factory\PurchaseUnitFactory;
|
||||||
foreach (glob(plugin_dir_path(__FILE__).'modules/*/module.php') as $moduleFile) {
|
foreach (glob(plugin_dir_path(__FILE__).'modules/*/module.php') as $moduleFile) {
|
||||||
$modules[] = (@require $moduleFile)();
|
$modules[] = (@require $moduleFile)();
|
||||||
}
|
}
|
||||||
foreach (glob(plugin_dir_path(__FILE__).'modules.local/*/module.php') as $moduleFile) {
|
|
||||||
$modules[] = (@require $moduleFile)();
|
|
||||||
}
|
|
||||||
$providers = [];
|
$providers = [];
|
||||||
foreach ($modules as $module) {
|
foreach ($modules as $module) {
|
||||||
/* @var $module ModuleInterface */
|
/* @var $module ModuleInterface */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue