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

Updated Licensing cache system + versioning #4

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

ManiruzzamanAkash
Copy link

@ManiruzzamanAkash ManiruzzamanAkash commented May 11, 2023

[Update]: Updated Licensing cache system.
[Refactor]: Refactored some code-base to support type hint.

Test Result

Screen Shot 2023-05-11 at 6 03 52 PM

@ManiruzzamanAkash ManiruzzamanAkash marked this pull request as draft May 11, 2023 02:04
@ManiruzzamanAkash ManiruzzamanAkash marked this pull request as ready for review May 11, 2023 07:12
@ManiruzzamanAkash ManiruzzamanAkash changed the title Updated Licensing cache system Updated Licensing cache system + versioning May 23, 2023
@ManiruzzamanAkash
Copy link
Author

@ajgagnon I've not changed the namespace yet, may be after your review will update that.

Copy link
Contributor

@ajgagnon ajgagnon left a 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';
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants