protected function getFileContent($originalFile, $cacheFile)
    {
        $this->beforeFilter($originalFile, $cacheFile);
        // Run through each filter
        foreach ($this->filters as $filterName => $Filter) {
            $arguments = isset($this->request->params[$filterName]) ?
                $this->request->params[$filterName] : array();
            if (! is_array($arguments)) {
                $arguments = array($filterName => $arguments);
            }
            // Do not minify if .min. is in the filename as it has already been minified
            if(strpos($originalFile, '.min.') !== FALSE) {
                $arguments['minify'] = false;
            }
            $Filter->doFilter($cacheFile, $arguments, $this->options);
        }

        $this->afterFilter($originalFile, $cacheFile);
        $this->lastModifiedDate = time();

        return file_get_contents($cacheFile);
    }
protected function getFileContent($originalFile, $cacheFile)
    {
        $this->beforeFilter($originalFile, $cacheFile);
        // Run through each filter
        foreach ($this->filters as $filterName => $Filter) {
            $arguments = isset($this->request->params[$filterName]) ?
                $this->request->params[$filterName] : array();
            if (! is_array($arguments)) {
                $arguments = array($filterName => $arguments);
            }
            // Do not minify if .min. is in the filename as it has already been minified
            if(strpos($originalFile, '.min.') !== FALSE) {
                $arguments['minify'] = false;
            }
            $Filter->doFilter($cacheFile, $arguments, $this->options);
        }

        $this->afterFilter($originalFile, $cacheFile);
        $this->lastModifiedDate = time();

        return file_get_contents($cacheFile);
    }
protected function getFileContent ( $ originalFile , $ cacheFile ) { $ this -> beforeFilter ( $ originalFile , $ cacheFile ) ; // Run through each filter foreach ( $ this -> filters as $ filterName => $ Filter ) { $ arguments = isset ( $ this -> request -> params [ $ filterName ] ) ? $ this -> request -> params [ $ filterName ] : array ( ) ; if ( ! is_array ( $ arguments ) ) { $ arguments = array ( $ filterName => $ arguments ) ; } // Do not minify if .min. is in the filename as it has already been minified if ( strpos ( $ originalFile , '.min.' ) !== FALSE ) { $ arguments [ 'minify' ] = false ; } $ Filter -> doFilter ( $ cacheFile , $ arguments , $ this -> options ) ; } $ this -> afterFilter ( $ originalFile , $ cacheFile ) ; $ this -> lastModifiedDate = time ( ) ; return file_get_contents ( $ cacheFile ) ; }
Grab a files content but check to make sure it exists first

@param string $originalFile
@param string $cacheFile

@return string

@throws NotFoundException
Grab a files content but check to make sure it exists first