19 lines
330 B
PHP
19 lines
330 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace OpenTelemetry\SDK\Common\Configuration\Resolver;
|
||
|
|
||
|
class PhpIniAccessor
|
||
|
{
|
||
|
/**
|
||
|
* Mockable accessor for php.ini values
|
||
|
* @internal
|
||
|
* @return array|false|string
|
||
|
*/
|
||
|
public function get(string $variableName)
|
||
|
{
|
||
|
return get_cfg_var($variableName);
|
||
|
}
|
||
|
}
|