Sha256: db5220758dfc22bbc5ea3521f105fd0bef44a39c60e5774df064bf5bbbe6e146
Contents?: true
Size: 634 Bytes
Versions: 33
Compression:
Stored size: 634 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]; $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
33 entries across 11 versions & 1 rubygems