public function __construct($appRoot = null, $appName = 'evaengine', $appMode = 'web')
{
self::$appStartTime = microtime(true);
$this->appRoot = $appRoot ? $appRoot : __DIR__;
$this->appName = empty($_SERVER['APPLICATION_NAME']) ? $appName : $_SERVER['APPLICATION_NAME'];
$this->environment = empty($_SERVER['APPLICATION_ENV']) ? 'development' : $_SERVER['APPLICATION_ENV'];
$appMode = strtolower($appMode);
$this->appMode = in_array($appMode, array('web', 'cli')) ? $appMode : 'web';
}