public function InformationHeaders::setEnvProperty in Auth0 Single Sign On 8.2
Add an optional env property for SDK telemetry.
Parameters
string $name Property name to set, name of dependency or platform.:
string $version Version number of dependency or platform.:
Return value
void
3 calls to InformationHeaders::setEnvProperty()
- InformationHeaders::setCorePackage in vendor/
auth0/ auth0-php/ src/ API/ Helpers/ InformationHeaders.php - Set the main SDK name and version to the PHP SDK.
- InformationHeaders::setDependency in vendor/
auth0/ auth0-php/ src/ API/ Helpers/ InformationHeaders.php - @codeCoverageIgnore - Deprecated
- InformationHeaders::setEnvironment in vendor/
auth0/ auth0-php/ src/ API/ Helpers/ InformationHeaders.php - @codeCoverageIgnore - Deprecated
File
- vendor/
auth0/ auth0-php/ src/ API/ Helpers/ InformationHeaders.php, line 54
Class
- InformationHeaders
- Class InformationHeaders Builds, extends, modifies, and formats SDK telemetry data.
Namespace
Auth0\SDK\API\HelpersCode
public function setEnvProperty($name, $version) {
if (!isset($this->data['env']) || !is_array($this->data['env'])) {
$this->data['env'] = [];
}
$this->data['env'][$name] = $version;
}