/** * Determines whether a server is running in production mode. * @return bool */ public static function isProduction() { if (self::$productionMode === NULL) { self::$productionMode = !Configurator::detectDebugMode(); } return self::$productionMode; }