delete some references to modules.locale

This commit is contained in:
David Remer 2020-09-01 14:53:03 +03:00
parent df4a4b7fef
commit a3ee3368da
6 changed files with 5 additions and 8 deletions

2
.gitignore vendored
View file

@ -5,4 +5,4 @@ phpunit.xml
.phpunit.result.cache
composer.lock
yarn-error.log
modules.local/ppcp-button/assets/*
modules/ppcp-button/assets/*

View file

@ -89,7 +89,7 @@ return array(
},
'button.url' => static function ( ContainerInterface $container ): string {
return plugins_url(
'/modules.local/ppcp-button/',
'/modules/ppcp-button/',
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
);
},

View file

@ -108,7 +108,7 @@ return array(
'onboarding.url' => static function ( ContainerInterface $container ): string {
return plugins_url(
'/modules.local/ppcp-onboarding/',
'/modules/ppcp-onboarding/',
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
);
},

View file

@ -1556,7 +1556,7 @@ return array(
},
'wcgateway.url' => static function ( ContainerInterface $container ): string {
return plugins_url(
'/modules.local/ppcp-wc-gateway/',
'/modules/ppcp-wc-gateway/',
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
);
},

View file

@ -10,7 +10,7 @@
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
<directory suffix=".php">./modules.local/</directory>
<directory suffix=".php">./modules/</directory>
</whitelist>
</filter>
<testsuites>

View file

@ -36,9 +36,6 @@ use Inpsyde\PayPalCommerce\ApiClient\Factory\PurchaseUnitFactory;
foreach (glob(plugin_dir_path(__FILE__).'modules/*/module.php') as $moduleFile) {
$modules[] = (@require $moduleFile)();
}
foreach (glob(plugin_dir_path(__FILE__).'modules.local/*/module.php') as $moduleFile) {
$modules[] = (@require $moduleFile)();
}
$providers = [];
foreach ($modules as $module) {
/* @var $module ModuleInterface */