Sha256: 3f71e3c7c893764af3490d024750154b2c99f2cc4ab7cf08650cbabd2c462486
Contents?: true
Size: 628 Bytes
Versions: 11
Compression:
Stored size: 628 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 = empty($cnf['apache']) ? $cnf['vhost'][APPLICATION_ENV] : $cnf['apache'][APPLICATION_ENV]; // what conf are we using require APPLICATION_ENV . '.settings.php';
Version data entries
11 entries across 11 versions & 1 rubygems