Server Environment detection based on config array-file
In your bootstrap file (usually index.php)
// First Auto-loader or include file
// Include the environment specific config file
\Reliv\Server\Environment::setLocalEnvironment(__DIR__ . '/../config/env.php');
Config file format:
<?php
return [
'RelivServerEnvironment' => [
'name' => 'local',
'isProduction' => false,
'initSet' => [
// EXAMPLE:
'xdebug.max_nesting_level' => 200,
],
],
];
James Jervis