src/readers/EnvReader.php
private function createDotenv($dir, $file)
    {
        if (method_exists(Dotenv::class, 'create')) {
            return Dotenv::create($dir, $file);
        } else {
            return new Dotenv($dir, $file);
        }
    }
private function createDotenv($dir, $file)
    {
        if (method_exists(Dotenv::class, 'create')) {
            return Dotenv::create($dir, $file);
        } else {
            return new Dotenv($dir, $file);
        }
    }
private function createDotenv ( $ dir , $ file ) { if ( method_exists ( Dotenv :: class , 'create' ) ) { return Dotenv :: create ( $ dir , $ file ) ; } else { return new Dotenv ( $ dir , $ file ) ; } }
Creates Dotenv object.
Supports both 2 and 3 version of `phpdotenv`
@param mixed $dir
@param mixed $file
@return Dotenv
Creates Dotenv object . Supports both 2 and 3 version of phpdotenv