src/Config/Loader/FileLoader/FileLoaderAbstract.php
public function readFrom($input)
    {
        if ($this->isFile($input)) {
            if (is_readable($input) === false) {
                throw new \RuntimeException(
                    sprintf('Unable to parse "%s" as the file is not readable.', $input)
                );
            }

            // $input is a filepath, so we load that file
            $input = file_get_contents($input);
        }

        return trim($input);
    }
public function readFrom($input)
    {
        if ($this->isFile($input)) {
            if (is_readable($input) === false) {
                throw new \RuntimeException(
                    sprintf('Unable to parse "%s" as the file is not readable.', $input)
                );
            }

            // $input is a filepath, so we load that file
            $input = file_get_contents($input);
        }

        return trim($input);
    }
public function readFrom ( $ input ) { if ( $ this -> isFile ( $ input ) ) { if ( is_readable ( $ input ) === false ) { throw new \ RuntimeException ( sprintf ( 'Unable to parse "%s" as the file is not readable.' , $ input ) ) ; } // $input is a filepath, so we load that file $ input = file_get_contents ( $ input ) ; } return trim ( $ input ) ; }
Read from a file or string

@throws \RuntimeException if the file is not readable

@param  string $input Filepath or string

@return string Return a string from read file or directly from $input
Read from a file or string