lib/Minify.php
public function combine($sources, $options = array())
    {
        $tmpCache = $this->cache;
        $this->cache = new Minify_Cache_Null();

        $env = new Minify_Env();
        $sourceFactory = new Minify_Source_Factory($env, array(
            'checkAllowDirs' => false,
        ), $this->cache);
        $controller = new Minify_Controller_Files($env, $sourceFactory, $this->logger);

        $options = array_merge($options, array(
            'files' => (array)$sources,
            'quiet' => true,
            'encodeMethod' => '',
            'lastModifiedTime' => 0,
        ));
        $out = $this->serve($controller, $options);

        $this->cache = $tmpCache;

        return $out['content'];
    }
public function combine($sources, $options = array())
    {
        $tmpCache = $this->cache;
        $this->cache = new Minify_Cache_Null();

        $env = new Minify_Env();
        $sourceFactory = new Minify_Source_Factory($env, array(
            'checkAllowDirs' => false,
        ), $this->cache);
        $controller = new Minify_Controller_Files($env, $sourceFactory, $this->logger);

        $options = array_merge($options, array(
            'files' => (array)$sources,
            'quiet' => true,
            'encodeMethod' => '',
            'lastModifiedTime' => 0,
        ));
        $out = $this->serve($controller, $options);

        $this->cache = $tmpCache;

        return $out['content'];
    }
public function combine ( $ sources , $ options = array ( ) ) { $ tmpCache = $ this -> cache ; $ this -> cache = new Minify_Cache_Null ( ) ; $ env = new Minify_Env ( ) ; $ sourceFactory = new Minify_Source_Factory ( $ env , array ( 'checkAllowDirs' => false , ) , $ this -> cache ) ; $ controller = new Minify_Controller_Files ( $ env , $ sourceFactory , $ this -> logger ) ; $ options = array_merge ( $ options , array ( 'files' => ( array ) $ sources , 'quiet' => true , 'encodeMethod' => '' , 'lastModifiedTime' => 0 , ) ) ; $ out = $ this -> serve ( $ controller , $ options ) ; $ this -> cache = $ tmpCache ; return $ out [ 'content' ] ; }
Return combined minified content for a set of sources

No internal caching will be used and the content will not be HTTP encoded.

@param array $sources array of filepaths and/or Minify_Source objects

@param array $options (optional) array of options for serve.

@return string
Return combined minified content for a set of sources