protected function getFormzConfigurationFromCache($cacheIdentifier)
    {
        $cacheInstance = CacheService::get()->getCacheInstance();

        if ($cacheInstance->has($cacheIdentifier)) {
            $instance = $cacheInstance->get($cacheIdentifier);
        } else {
            $instance = $this->buildFormzConfiguration();

            if (false === $instance->getValidationResult()->hasErrors()) {
                $cacheInstance->set($cacheIdentifier, $instance);
            }
        }

        return $instance;
    }
protected function getFormzConfigurationFromCache($cacheIdentifier)
    {
        $cacheInstance = CacheService::get()->getCacheInstance();

        if ($cacheInstance->has($cacheIdentifier)) {
            $instance = $cacheInstance->get($cacheIdentifier);
        } else {
            $instance = $this->buildFormzConfiguration();

            if (false === $instance->getValidationResult()->hasErrors()) {
                $cacheInstance->set($cacheIdentifier, $instance);
            }
        }

        return $instance;
    }
protected function getFormzConfigurationFromCache ( $ cacheIdentifier ) { $ cacheInstance = CacheService :: get ( ) -> getCacheInstance ( ) ; if ( $ cacheInstance -> has ( $ cacheIdentifier ) ) { $ instance = $ cacheInstance -> get ( $ cacheIdentifier ) ; } else { $ instance = $ this -> buildFormzConfiguration ( ) ; if ( false === $ instance -> getValidationResult ( ) -> hasErrors ( ) ) { $ cacheInstance -> set ( $ cacheIdentifier , $ instance ) ; } } return $ instance ; }
Will fetch the configuration from cache, and build it if not found. It
won't be stored in cache if any error is found. This is done this way to
avoid the integrator to be forced to flush caches when errors are found.

@param string $cacheIdentifier
@return ConfigurationObjectInstance
Will fetch the configuration from cache and build it if not found . It won t be stored in cache if any error is found . This is done this way to avoid the integrator to be forced to flush caches when errors are found .