public function cacheResources(array $resources)
    {
        $cache = new ConfigCache($this->getCacheFileLocation(), $this->debug);
        $content = sprintf('<?php return %s;', var_export($resources, true));
        $cache->write($content);
        $this->logger->debug('Writing translation resources to cache file.');
    }