Files
old-new-wiaas/backend/config/environments/test.php
Almira Krdzic 5cbdb482f2 test
2018-10-21 02:13:57 +02:00

28 lines
698 B
PHP

<?php
define('SAVEQUERIES', false);
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
define('WP_DEBUG_LOG', false);
define('SCRIPT_DEBUG', false);
ini_set('display_errors',0);
ini_set('error_reporting', 0 );
/** Disable all file modifications including updates and update notifications */
define('DISALLOW_FILE_MODS', true);
/**
* Use Dotenv to set required environment variables and load .local.env file
*/
if (class_exists(\Dotenv\Dotenv::class)) {
$dotenv_dir = dirname(dirname(__DIR__));
if (file_exists($dotenv_dir . '/.env')) {
$dotenv = new Dotenv\Dotenv($dotenv_dir);
$dotenv->load();
$dotenv->required(['MYSQL_DATABASE', 'MYSQL_USER', 'MYSQL_PASSWORD']);
}
}