-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updated Licensing cache system + versioning #4
base: main
Are you sure you want to change the base?
Updated Licensing cache system + versioning #4
Conversation
…se in both deactivate and cache-expired
@ajgagnon I've not changed the namespace yet, may be after your review will update that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My knowledge of how require_once will work is a bit fuzzy. Maybe we can sync on this.
if ( ! class_exists( 'SureCart\Licensing\Client' ) ) { | ||
require_once __DIR__ . '/licensing/src/Client.php'; | ||
} | ||
require_once __DIR__ . '/licensing/SureCartSdkLoader.php'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test this with this sdk in 2 plugin directories? I would assume this may fail because they are being required in 2 different places maybe. But I'm not sure.
[Update]: Updated Licensing cache system.
[Refactor]: Refactored some code-base to support type hint.
Test Result