src/Kunstmaan/TranslatorBundle/Service/Translator/ResourceCacher.php
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.');
    }
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.');
    }
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.' ) ; }
Cache an array of resources into the given cache

@param array $resources
Cache an array of resources into the given cache