-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43a5027
commit 65e347f
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
inc/Engine/Common/JobManager/APIHandler/PluginLicenseClient.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
namespace WP_Rocket\Engine\Plugin; | ||
|
||
use WP_Rocket\Engine\Common\JobManager\APIHandler\AbstractSafeAPIClient; | ||
|
||
/** | ||
* Class PluginInformationClient | ||
* | ||
* This class extends the AbstractSafeAPIClient class and provides methods for | ||
* getting the transient key and API URL specific to plugin information. | ||
* | ||
*/ | ||
class LicenseValidationClient extends AbstractSafeAPIClient { | ||
|
||
/** | ||
* Get the transient key for plugin information. | ||
* | ||
* This method returns the transient key used for caching plugin information. | ||
* | ||
* @return string The transient key for plugin information. | ||
*/ | ||
protected function get_transient_key() { | ||
return 'wp_rocket_license_validation'; | ||
} | ||
|
||
/** | ||
* Get the API URL for plugin information. | ||
* | ||
* This method returns the API URL used for fetching plugin information. | ||
* | ||
* @return string The API URL for plugin information. | ||
*/ | ||
protected function get_api_url() { | ||
return rocket_get_constant( 'WP_ROCKET_WEB_VALID' ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters