Sha256: 9f066d43b84790ac7e2950573bcacfba39f9e1d43201509c4b5d6ba609471d95
Contents?: true
Size: 571 Bytes
Versions: 21
Compression:
Stored size: 571 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 $cnf = Yaml::parse(file_get_contents(__DIR__.'/../../../config/cnf.yml')); $db = (object) $cnf['dbs']['default'][APPLICATION_ENV]; $apache = $cnf['apache'][APPLICATION_ENV]; // what conf are we using require APPLICATION_ENV . '.settings.php';
Version data entries
21 entries across 21 versions & 1 rubygems