Read value into the config by path and scope.

@param string $path      Config path.
@param string $scopeCode Scope coode.

@return mixed
969910
protected function getConfigValue($path, $scopeCode)
    {
        $scope = ContainerScopeInterface::SCOPE_STORE_CONTAINERS;

        return $this->scopeConfig->getValue($path, $scope, $scopeCode);
    }
692934
protected function read()
	{
		if( $this->useCache )
		{
			$fileName	= $this->pathCache.basename( $this->fileName ).".cache";
			if( file_exists( $fileName ) && file_exists( $this->fileName ) && filemtime( $fileName ) == filemtime( $this->pathConfig.$this->fileName ) )
			{
				return $this->readCache( $fileName );
			}
			else
			{
				$this->readWDDX();
				return $this->writeCache( $fileName );
			}
		}
		return $this->readWDDX();

	}
301704
public function scope(string $filePath, string $contents, string $prefix, array $patchers, Whitelist $whitelist): string
    {
        if (1 !== preg_match('/composer\.json$/', $filePath)) {
            return $this->decoratedScoper->scope($filePath, $contents, $prefix, $patchers, $whitelist);
        }

        $decodedJson = json_decode($contents);

        if (false === ($decodedJson instanceof stdClass)) {
            throw new LogicException(
                sprintf(
                    'Expected the decoded JSON to be an stdClass instance, got "%s" instead',
                    gettype($decodedJson)
                )
            );
        }

        $decodedJson = AutoloadPrefixer::prefixPackageAutoloadStatements($decodedJson, $prefix, $whitelist);

        return json_encode(
            $decodedJson,
            JSON_PRETTY_PRINT
        );
    }
440789
protected function readContent(/*# string */ $path)/*# : string */
    {
        $str = file_get_contents($path);

        if (is_string($str)) {
            return $str;
        } else {
            throw new LogicException(
                Message::get(Message::ENV_READ_FAIL, $path),
                Message::ENV_READ_FAIL
            );
        }
    }
1330315
public function getIso($code = null)
    {
        $data = (array) gplcart_config_get(GC_FILE_CONFIG_LANGUAGE);

        if (isset($code)) {
            return isset($data[$code]) ? (array) $data[$code] : array();
        }

        return $data;
    }
631060
private function getMinimumShouldMatch($scopeCode)
    {
        $path = self::BASE_RELEVANCE_CONFIG_XML_PREFIX . "/" . self::MINIMUM_SHOULD_MATCH_CONFIG_XML_PATH;

        return $this->getConfigValue($path, $scopeCode);
    }
167012
public function deleteValue($path, $scope, $scope_id)
    {
        $write = $this->_magento->getDatabaseWriteConnection();
        return $write->delete(
            $this->_table_name,
            array(
                'scope = ?'    => $scope,
                'scope_id = ?' => $scope_id,
                'path = ?'     => $path
            )
        );
    }
1328246
public function readConfigDir(string $path): Configurator
    {
        if (!is_dir($path)) {
            throw new \InvalidArgumentException(
                sprintf("Config dir isn't a directory! %s given.", $path));
        }

        $entitiesDir = new \DirectoryIterator($path);
        foreach ($entitiesDir as $fileInfo) {
            if (!$fileInfo->isFile() || ('php' !== $fileInfo->getExtension())) {
                continue;
            }
            require_once($fileInfo->getPathname());
        }

        return $this;
    }
919590
public function readStream($path)
    {
        $stream = fopen($this->applyPathPrefix($path), 'r');

        return $stream !== false ? compact('stream') : false;
    }
755433
public function saveConfigData($path, $value, $scope, $scopeId)
    {
        $this->resourceConfig->saveConfig(
            $path,
            $value,
            $scope,
            $scopeId
        );
    }
256333
public function read($path)
	{
		$path = Util::normalizePath($path);

		$this->assertPresent($path);

		return (string) $this->adapter->read($path);
	}
714558
protected function readJson($path)
    {
        $jsonData = @file_get_contents($path);

        if (false === $jsonData) {
            throw new ConfigurationReadException($path);
        }

        $data = json_decode($jsonData);
        $jsonError = json_last_error();
        if (JSON_ERROR_NONE !== $jsonError) {
            throw new InvalidJsonException($path, $jsonError);
        }

        return new ObjectAccess($data);
    }
772376
public function readStream($path)
    {
        [$prefix, $path] = $this->getPrefixAndPath($path);

        return $this->getFilesystem($prefix)->readStream($path);
    }
562193
protected function _scope($entity) {
		$scope = [];
		foreach ($this->_config['scope'] as $key => $value) {
			if (is_numeric($key)) {
				if (isset($entity, $value)) {
					$scope[$value] = $entity->$value;
				} else {
					$message = "The `{$value}` scope in not present in the entity.";
					throw new UnexpectedValueException($message);
				}
			} else {
				$scope[$key] = $value;
			}
		}
		return $scope;
	}
264905
public function read(string $path): string
    {
        $path = $this->normalizePath($path);
        $this->assertPresent($path);

        return $this->getAdapter()->read($path);
    }
1113717
public function map($scope, $path, $url = null)
    {
        if ($path instanceof AppPathContract) {
            $this->paths[$scope] = $path;

            return $path;
        }
        $this->paths[$scope] = $this->createAppPath($path, $url);

        return $this->paths[$scope];
    }
730525
private function readFile($name, $folder = null){
        $realConfig= NULL;
        $folder != null ?: $folder= $this->pathApp . $this->configurationFolder;
        if($this->configurationType == 'YAML'){
            $realConfig = \Spyc::YAMLLoad($folder . $name . '.yml');            
        }else if($this->configurationType == 'PHP'){
            include $folder . $name . '.php';
            //La variable $config la define cada archivo incluido
            $realConfig= $config;
        }else{
            $realConfig= json_decode(file_get_contents($folder . $name . '.json'), true);  
        }
        return $realConfig;
    }