protected function readFile($file)
    {
        if (false === file_exists($file) || false === is_file($file)) {
            throw new Doozr_Di_Exception(
                sprintf(
                    'Error reading file. File "%s" does not exist or is not a valid file', $file
                )
            );
        }

        return file_get_contents($file);
    }
protected function readFile($file)
    {
        if (false === file_exists($file) || false === is_file($file)) {
            throw new Doozr_Di_Exception(
                sprintf(
                    'Error reading file. File "%s" does not exist or is not a valid file', $file
                )
            );
        }

        return file_get_contents($file);
    }
protected function readFile ( $ file ) { if ( false === file_exists ( $ file ) || false === is_file ( $ file ) ) { throw new Doozr_Di_Exception ( sprintf ( 'Error reading file. File "%s" does not exist or is not a valid file' , $ file ) ) ; } return file_get_contents ( $ file ) ; }
Reads content from given file.

This method is intend to read content from given file and store it in $content.

@param string $file The file to read from

@author Benjamin Carl <opensource@clickalicious.de>

@return string The function returns the read data or false on failure.

@throws Doozr_Di_Exception
Reads content from given file .