Helper/FileSystem.php
public function load($file)
    {
        $dir = $this->getDir();

        if (!$this->filesystem->exists($dir . $file)) {
            throw new NotFoundException('File not found.');
        }

        return file_get_contents($dir . $file);
    }
public function load($file)
    {
        $dir = $this->getDir();

        if (!$this->filesystem->exists($dir . $file)) {
            throw new NotFoundException('File not found.');
        }

        return file_get_contents($dir . $file);
    }
public function load ( $ file ) { $ dir = $ this -> getDir ( ) ; if ( ! $ this -> filesystem -> exists ( $ dir . $ file ) ) { throw new NotFoundException ( 'File not found.' ) ; } return file_get_contents ( $ dir . $ file ) ; }
Load the content from file.

@param string $file

@return bool|string

@throws NotFoundException when file not found.
Load the content from file .