Load key.
@param $key
336349
protected function loadKey($key)
    {
        // Pegar soh o primeiro key
        $parts = explode('.', $key);
        $first = $parts[0];

        // Verificar se item já foi adicionado
        if (array_key_exists($first, $this->items)) {
            return;
        }

        if (array_key_exists($first, $this->finded)) {
            return;
        }

        $file = config_path(sprintf('%s.php', $first));
        if (file_exists($file)) {
            $this->set($first, require $file);
        }

        $this->finded[$first] = true;
    }
1150450
protected function loadConfig($key)
    {
        // all config files loaded
        if ($this->all_loaded) {
            return $this;
        }

        // load all
        if (null === $key) {
            $this->loadGroupConfig(null);
            $this->all_loaded = true;
            return $this;
        }

        // $key has to be a string
        $this->exceptionIfNotString($key);

        // first field
        $group = $this->getFirstField($key);

        // group loaded already
        if (isset($this->pool[$group])) {
            return $this;
        }

        // super globals dealed in getValue()
        if ('_' !== $group[0] || !isset($GLOBALS[$group])) {
            $this->loadGroupConfig($group);
        }

        return $this;
    }
1025889
protected Object load(final IndexScopedKey key) {
      try {
         return key.accept(loadVisitor);
      }
      catch (Exception e) {
         throw log.exceptionInCacheLoader(e);
      }
   }
756116
public function withKey($key)
    {
        $this->lastKey = $key;
        $this->keys[$key] = null;

        return $this;
    }
1252137
public function load(string $path, string $key = null): ConfigInterface
    {
        try {
            // Read parameters from file
            $parameters = $this->loadFile($path);

            // If key is provided then need put parameters into subarray
            if (null !== $key) {
                $parameters = [$key => $parameters];
            }

            // Keep configuration
            $this->setter($parameters);

        } catch (Exception $e) {
            // Error message implemented in exception
        }
        return $this;
    }
710263
final public static function SetSessionKey( string $key ) : void {
        
        self::SetConfigFromSetter(
                $key,
                self::akSessionKey,
                self::ValidateSessionKey( )
        );
        
    }
349924
public function read($key)
    {
        if (!isset($this->cacheDirectory)) {
            return;
        }

        $this->loadCacheMetaData();

        return unserialize(file_get_contents($this->cacheDirectory . '/' . $key));
    }
1163684
private function read($key)
    {
        $_jsonFile = $this->_root.$key.'.json';
        if(empty($this->_nr[$key])) {
            if (file_exists($_jsonFile)) {
                $_ar = @file_get_contents($_jsonFile);
                $ar = json_decode($_ar,true);
            } else {
                $ar = array();
            }
            $this->_nr[$key] = $ar;
        }
        return $this;
    }
1205310
protected function parseKey($key)
    {
        if (!isset($this->keys[$key])) {
            $this->keys[$key] = explode($this->separator, $key);
        }

        return $this->keys[$key];
    }
1112242
public function useEncryption($key)
    {
        $this->encryptor = new \sb\Encryption\ForTransmission($key);
        $this->encryption_key = $key;
    }
211439
public function key($key = null)
    {
        if (!func_num_args()) {
            return $this->_key;
        }
        $this->_key = $key;
        return $this;
    }
523326
function load($key): bool {
    $cacheKey = [__CLASS__, $key];
    $viewRenderer = $this->viewRenderer;

    /** @var \yii\caching\Cache $cache */
    $cache = $viewRenderer->cache;
    if (!$viewRenderer->enableCaching || !$cache->exists($cacheKey)) return false;

    eval("?>{$cache->get($cacheKey)}");
    return true;
  }
177188
private function load($key, $autoEnable = false)
    {

        $this->key = $key;
        $ok = $this->dataConnector->loadToolConsumer($this);
        if (!$ok) {
            $this->enabled = $autoEnable;
        }

        return $ok;

    }
465878
public static function putKey($group, $key)
    {
        self::loadKeys();

        self::$keys[$group] = self::getKeys($group);

        if (!in_array($key, self::$keys[$group])) {
            self::$keys[$group][] = $key;
        }

        self::storeKeys();
    }
910843
function setKey($key) {
		$this->cnxn->confirmTransaction('setKey');
		$currKey = $this->key;
		if (!is_null($currKey) && is_null($key)) {
			$this->cnxn->unregisterStructWithKey($this, $currKey);
		} else if (is_null($currKey) && !is_null($key)) {
			$this->cnxn->registerStructWithKey($this, $key);
		} else if ($currKey != $key) {
			$this->cnxn->unregisterStructWithKey($this, $currKey);
			$this->cnxn->registerStructWithKey($this, $key);
		}
		$this->key = $key;
	}
1069655
public function load($key, Clovers $callback)
    {
        if(!$this->has($key))
        {
            $this->set($key, $callback($key));
        }
        
        return $this->get($key);
    }
193831
protected function loadPrivateKey($key)
    {
        if (app()->runningUnitTests()) {
            return '===FAKE-KEY===';
        }

        // If it's a relative path, start searching in the
        // project root
        if ($key[0] !== '/') {
            $key = base_path().'/'.$key;
        }

        return file_get_contents($key);
    }