public function getMainConfig()
    {
        $config = null;
        if ($this->cache) {
            $config = $this->cache->fetch(self::CONFIG_CACHE_KEY);
        }
        if (empty($config)) {
            $config = $this->generateMainConfig();
            if ($this->cache) {
                $this->cache->save(self::CONFIG_CACHE_KEY, $config);
            }
        }
        return $config;
    }
public function getMainConfig()
    {
        $config = null;
        if ($this->cache) {
            $config = $this->cache->fetch(self::CONFIG_CACHE_KEY);
        }
        if (empty($config)) {
            $config = $this->generateMainConfig();
            if ($this->cache) {
                $this->cache->save(self::CONFIG_CACHE_KEY, $config);
            }
        }
        return $config;
    }
public function getMainConfig ( ) { $ config = null ; if ( $ this -> cache ) { $ config = $ this -> cache -> fetch ( self :: CONFIG_CACHE_KEY ) ; } if ( empty ( $ config ) ) { $ config = $ this -> generateMainConfig ( ) ; if ( $ this -> cache ) { $ this -> cache -> save ( self :: CONFIG_CACHE_KEY , $ config ) ; } } return $ config ; }
Fetches piece of JS-code with require.js main config from cache
or if it was not there - generates and put into a cache

@return string
Fetches piece of JS - code with require . js main config from cache or if it was not there - generates and put into a cache