Core/Config/Config.php
public function &createStorage(string $storage_name): ConfigStorage
    {
        if (isset($this->storage[$storage_name])) {
            return $this->getStorage($storage_name);
        }

        $storage = new ConfigStorage();
        $storage->setName($storage_name);

        $this->storage[$storage_name] = $storage;

        return $storage;
    }
public function &createStorage(string $storage_name): ConfigStorage
    {
        if (isset($this->storage[$storage_name])) {
            return $this->getStorage($storage_name);
        }

        $storage = new ConfigStorage();
        $storage->setName($storage_name);

        $this->storage[$storage_name] = $storage;

        return $storage;
    }
public function & createStorage ( string $ storage_name ) : ConfigStorage { if ( isset ( $ this -> storage [ $ storage_name ] ) ) { return $ this -> getStorage ( $ storage_name ) ; } $ storage = new ConfigStorage ( ) ; $ storage -> setName ( $ storage_name ) ; $ this -> storage [ $ storage_name ] = $ storage ; return $ storage ; }
Creates a named config storage object, adds it to the storages list and returns a reference to it.

@param string $storage_name
Name of storage to create

@throws ConfigException

@return ConfigStorage
Creates a named config storage object adds it to the storages list and returns a reference to it .