Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API class isn't overridden when specified #30

Closed
lat9 opened this issue Mar 27, 2024 · 0 comments
Closed

API class isn't overridden when specified #30

lat9 opened this issue Mar 27, 2024 · 0 comments
Labels
bug Something isn't working fix provided A correction has been provided
Milestone

Comments

@lat9
Copy link
Owner

lat9 commented Mar 27, 2024

Even though the class override is loaded, the version instantiated is still the default:

if (!class_exists(MODULE_SHIPPING_UPSOAUTH_API_CLASS)) {
require DIR_WS_MODULES . 'shipping/upsoauth/' . MODULE_SHIPPING_UPSOAUTH_API_CLASS . '.php';
}
$this->upsApi = new UpsOAuthApi(MODULE_SHIPPING_UPSOAUTH_MODE, $this->debug, $this->logfile);

@lat9 lat9 added the bug Something isn't working label Mar 27, 2024
@lat9 lat9 added this to the v1.3.4 milestone Mar 27, 2024
@lat9 lat9 added the fix provided A correction has been provided label Mar 27, 2024
@lat9 lat9 closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix provided A correction has been provided
Projects
None yet
Development

No branches or pull requests

1 participant