private function loadFile($file, $ext)
    {
        $filename = $this->fixFilename($file, $ext);

        if (!is_readable($filename)) {
            throw new NotFoundException('file', $file);
        }

        return file_get_contents($filename);
    }
private function loadFile($file, $ext)
    {
        $filename = $this->fixFilename($file, $ext);

        if (!is_readable($filename)) {
            throw new NotFoundException('file', $file);
        }

        return file_get_contents($filename);
    }
private function loadFile ( $ file , $ ext ) { $ filename = $ this -> fixFilename ( $ file , $ ext ) ; if ( ! is_readable ( $ filename ) ) { throw new NotFoundException ( 'file' , $ file ) ; } return file_get_contents ( $ filename ) ; }
Reads file from disk.

@param $file
@param $ext

@return string
@throws \eZ\Publish\Core\Base\Exceptions\NotFoundException
Reads file from disk .