-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(php): Add remaining php clients #106
feat(php): Add remaining php clients #106
Conversation
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.
I feel like a lot of code can be simplified still, but massive work !
clients/algoliasearch-client-php/lib/Configuration/InsightsConfig.php
Outdated
Show resolved
Hide resolved
@@ -60,6 +60,14 @@ class Configuration extends AbstractConfig | |||
*/ | |||
protected $tempFolderPath; |
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.
You can remove this as we won't deal with file download
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.
The method getTempFolderPath() is used in the ObjectSerializer class (in the deserialize() method)
clients/algoliasearch-client-php/lib/Configuration/ConfigWithRegion.php
Outdated
Show resolved
Hide resolved
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.
Looking good ! Small comment that you can ignore
]; | ||
|
||
public static function create($appId = null, $apiKey = null, $region = null) | ||
public static function create($appId = null, $apiKey = null, $region = null, $allowedRegions = null) |
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.
You could store the allowedRegions
in the object to check against later in the setRegion
method
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.
Actually you can't because create()
is a static method. But anyways, I just saw that setRegion() is not used anywhere
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.
That's one way to do it
🧭 What and Why
🎟 JIRA Ticket: APIC-273
Changes included: