mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
codingstandards src/
This commit is contained in:
parent
a35d103111
commit
42930b48be
3 changed files with 23 additions and 2 deletions
|
@ -27,6 +27,12 @@ function autoload() {
|
|||
'Logging' => $module_dir . 'woocommerce-logging/src/',
|
||||
];
|
||||
|
||||
if (isset($class_parts[2]) && ! isset($class_parts[3])) {
|
||||
$file_path = dirname(__DIR__) . '/src/class-' . strtolower($class_parts[2]) . '.php';
|
||||
include $file_path;
|
||||
return;
|
||||
}
|
||||
|
||||
if (! isset($modules[$class_parts[2]])) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue