File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/location/lib/infrastructure/service/config/container.php
Back
<?php namespace Bitrix\Location\Infrastructure\Service\Config; use \Bitrix\Location\Exception\ErrorCodes; final class Container { private $configValues = []; public function __construct(array $configValues) { $this->configValues = $configValues; } public function get($id) { if(!$this->has($id)) { throw new \LogicException( "Sevice configuration container does not contain '{$id}' value", ErrorCodes::SERVICE_CONFIG_VALUE_NOT_FOUND ); } return $this->configValues[$id]; } public function has($id) { return array_key_exists($id, $this->configValues); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings