public function combine($type, &$files)
	{
		$basePath = realpath($this->getOption('basePath'));
		if(empty($basePath))return $files;
		$cacheName = $this->createCachePath($this->getOption('cacheFileName')?$this->getOption('cacheFileName'):$this->createFileName($type,$files)).'.'.$type;
		$this->setOption('coreUrl',$this->coreUrl);
		$minifier = new AssetsMinifier($this->options);
		$cacheUrl = $minifier->compress($type, $files, $cacheName);
		if(!empty($files))
		array_walk($files, function(&$value, $key) use($cacheUrl) {
			$value = $cacheUrl;
		});
		$this->cached[$type] = $cacheUrl;
	}
public function combine($type, &$files)
	{
		$basePath = realpath($this->getOption('basePath'));
		if(empty($basePath))return $files;
		$cacheName = $this->createCachePath($this->getOption('cacheFileName')?$this->getOption('cacheFileName'):$this->createFileName($type,$files)).'.'.$type;
		$this->setOption('coreUrl',$this->coreUrl);
		$minifier = new AssetsMinifier($this->options);
		$cacheUrl = $minifier->compress($type, $files, $cacheName);
		if(!empty($files))
		array_walk($files, function(&$value, $key) use($cacheUrl) {
			$value = $cacheUrl;
		});
		$this->cached[$type] = $cacheUrl;
	}
public function combine ( $ type , & $ files ) { $ basePath = realpath ( $ this -> getOption ( 'basePath' ) ) ; if ( empty ( $ basePath ) ) return $ files ; $ cacheName = $ this -> createCachePath ( $ this -> getOption ( 'cacheFileName' ) ? $ this -> getOption ( 'cacheFileName' ) : $ this -> createFileName ( $ type , $ files ) ) . '.' . $ type ; $ this -> setOption ( 'coreUrl' , $ this -> coreUrl ) ; $ minifier = new AssetsMinifier ( $ this -> options ) ; $ cacheUrl = $ minifier -> compress ( $ type , $ files , $ cacheName ) ; if ( ! empty ( $ files ) ) array_walk ( $ files , function ( & $ value , $ key ) use ( $ cacheUrl ) { $ value = $ cacheUrl ; } ) ; $ this -> cached [ $ type ] = $ cacheUrl ; }
Combining cache path
@param String $type type files that will be combined
@param String $files files that will be combined and cached
@return void
Combining cache path