public function open($filename)
    {
        if (!$this->exists($filename) || false === $content = file_get_contents($filename)) {
            throw new FileNotFoundException($filename);
        }

        return $this->makeFile($filename, $content);
    }
public function open($filename)
    {
        if (!$this->exists($filename) || false === $content = file_get_contents($filename)) {
            throw new FileNotFoundException($filename);
        }

        return $this->makeFile($filename, $content);
    }
public function open ( $ filename ) { if ( ! $ this -> exists ( $ filename ) || false === $ content = file_get_contents ( $ filename ) ) { throw new FileNotFoundException ( $ filename ) ; } return $ this -> makeFile ( $ filename , $ content ) ; }
Makes a File out of an existing file.

@param string $filename

@return File

@throws FileNotFoundException
Makes a File out of an existing file .