src/Registry/ModRegistry.php
protected function loadMods(): void
    {
        if (!$this->isLoaded) {
            $this->mods = [];
            foreach ($this->decodeContent((string) $this->loadContent(self::HASH_FILE_MODS)) as $modData) {
                if (is_array($modData)) {
                    $mod = new Mod();
                    $mod->readData(new DataContainer($modData));
                    $this->mods[$mod->getName()] = $mod;
                }
            }
            $this->isLoaded = true;
        }
    }
protected function loadMods(): void
    {
        if (!$this->isLoaded) {
            $this->mods = [];
            foreach ($this->decodeContent((string) $this->loadContent(self::HASH_FILE_MODS)) as $modData) {
                if (is_array($modData)) {
                    $mod = new Mod();
                    $mod->readData(new DataContainer($modData));
                    $this->mods[$mod->getName()] = $mod;
                }
            }
            $this->isLoaded = true;
        }
    }
protected function loadMods ( ) : void { if ( ! $ this -> isLoaded ) { $ this -> mods = [ ] ; foreach ( $ this -> decodeContent ( ( string ) $ this -> loadContent ( self :: HASH_FILE_MODS ) ) as $ modData ) { if ( is_array ( $ modData ) ) { $ mod = new Mod ( ) ; $ mod -> readData ( new DataContainer ( $ modData ) ) ; $ this -> mods [ $ mod -> getName ( ) ] = $ mod ; } } $ this -> isLoaded = true ; } }
Loads the mods from the file.
Loads the mods from the file .