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

Client usage tracking #15

Merged
merged 4 commits into from
Jan 31, 2024
Merged

Client usage tracking #15

merged 4 commits into from
Jan 31, 2024

Conversation

nerijuszaniauskas
Copy link
Collaborator

@nerijuszaniauskas nerijuszaniauskas commented Jan 30, 2024

@nerijuszaniauskas nerijuszaniauskas marked this pull request as ready for review January 31, 2024 12:58
@nerijuszaniauskas nerijuszaniauskas requested a review from a team as a code owner January 31, 2024 12:58
arnas
arnas previously approved these changes Jan 31, 2024
* @param string $plugin_version
* @param string $api_key
*/
public function __construct( string $api_key, string $plugin_name, string $plugin_version ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe throw error here? User shouldn't encounter this error as dev will be forced to provide value

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I try not to break client website. Throwing error could take all website down, I think we should avoid this. This class will not be created directly. Only trough Factory, where we ask to provide values, I think this should be enough to inform about this requirement.

class Omnisend {

/**
* @param $plugin string plugin using client name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add comment what this function does

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@nerijuszaniauskas nerijuszaniauskas merged commit b7693a7 into main Jan 31, 2024
1 check passed
@nerijuszaniauskas nerijuszaniauskas deleted the client-usage-tracking branch January 31, 2024 14:22
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.

3 participants