<?php

return [

    /*
     * Database connections
     * Currently only SQLite & mySQL are set up
     * others to come soon
    */
   
    'connections' => [
        'sqlite' => [
            'driver' => 'sqlite',
            'database' => getenv('DATABASE_PATH'),
        ],
        'mysql'  => [
            'driver' => 'pdo_mysql',
            'user' => getenv('DATABASE_USER'),
            'password' => getenv('DATABASE_PASSWORD'),
            'host' => getenv('DATABASE_HOST'),
            'dbname' => getenv('DATABASE_NAME'),
        ],
    ],
];

<?php
if (!getenv('DATABASE_PATH')) {
    // crank up the Composer autoloading
    require __DIR__.'/../vendor/autoload.php';

    // load environment variables
    \Lib\Framework\EnvVarsLoader::loadEnvVars();
}

return [

    /*
     * Database connections
     * Currently only SQLite & mySQL are set up
     * others to come soon
    */

    'connections' => [
        'sqlite' => [
            'driver' => 'sqlite',
            'database' => getenv('DATABASE_PATH'),
        ],
        'mysql'  => [
            'driver' => 'pdo_mysql',
            'user' => getenv('DATABASE_USER'),
            'password' => getenv('DATABASE_PASSWORD'),
            'host' => getenv('DATABASE_HOST'),
            'dbname' => getenv('DATABASE_NAME'),
        ],
    ],
];

Update to load the .env file using existing technologies.
Update to load the .env file using existing technologies.
