protected function setupFile($originalFile, $cacheFile)
    {
        // Check if the file exists
        if (! file_exists($originalFile)) {
            throw new NotFoundException('File does not exist: ' . str_replace($this->request->webroot, '', $originalFile));
        }

        // Copy the original file to the cache location
        copy($originalFile, $cacheFile);
    }
protected function setupFile($originalFile, $cacheFile)
    {
        // Check if the file exists
        if (! file_exists($originalFile)) {
            throw new NotFoundException('File does not exist: ' . str_replace($this->request->webroot, '', $originalFile));
        }

        // Copy the original file to the cache location
        copy($originalFile, $cacheFile);
    }
protected function setupFile ( $ originalFile , $ cacheFile ) { // Check if the file exists if ( ! file_exists ( $ originalFile ) ) { throw new NotFoundException ( 'File does not exist: ' . str_replace ( $ this -> request -> webroot , '' , $ originalFile ) ) ; } // Copy the original file to the cache location copy ( $ originalFile , $ cacheFile ) ; }
Checks to see if the file exists and then copies it to the cache folder for further manipulation

@param $originalFile
@param $cacheFile

@throws NotFoundException
Checks to see if the file exists and then copies it to the cache folder for further manipulation