Dotenv\Loader::ensureFileIsReadable PHP Méthode

ensureFileIsReadable() protected méthode

Ensures the given filePath is readable.
protected ensureFileIsReadable ( ) : void
Résultat 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));
        }
    }