Dotenv\Loader::ensureFileIsReadable PHP Method

ensureFileIsReadable() protected method

Ensures the given filePath is readable.
protected ensureFileIsReadable ( ) : void
return void
    protected function ensureFileIsReadable()
    {
        if (!is_readable($this->filePath) || !is_file($this->filePath)) {
            throw new InvalidPathException(sprintf('Unable to read the environment file at %s.', $this->filePath));
        }
    }