Sha256: efb93d6a1c271b7706165b3c9e9fb46ea6e5dd4e20f5c25dce0b70fdae9098f7
Contents?: true
Size: 534 Bytes
Versions: 121
Compression:
Stored size: 534 Bytes
Contents
<?php // autoloader require_once __DIR__ . '/../../../vendor/autoload.php'; // Namespace for yaml use Symfony\Component\Yaml\Yaml; // Transfer environmental vars to constants if (!defined('APPLICATION_ENV')) define('APPLICATION_ENV', getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : "production"); // prep some data $db_cnf = Yaml::parse(file_get_contents(__DIR__.'/../../../config/cnf.yml')); $db = (object) $db_cnf['dbs']['default'][APPLICATION_ENV]; // what conf are we using require APPLICATION_ENV . '.settings.php';
Version data entries
121 entries across 80 versions & 1 rubygems