unset($_salts);
}
/**
 * Application Paths
 */
\Kisma::set(array('app.app_name' => $_appName, 'app.project_root' => $_basePath, 'app.vendor_path' => $_vendorPath, 'app.log_path' => $_logFilePath, 'app.log_file_name' => $_logFileName, 'app.install_type' => array($_installType => $_installName), 'app.fabric_hosted' => $_fabricHosted, 'app.doc_root' => $_docRoot));
/**
 * Database Caching
 */
$_dbCache = $_dbCacheEnabled ? array('class' => 'CDbCache', 'connectionID' => 'db', 'cacheTableName' => 'df_sys_cache', 'autoCreateCacheTable' => true) : null;
$_storageKey = \Kisma::get('platform.storage_key');
/**
 * Set up and return the common settings...
 */
if ($_fabricHosted) {
    $_storagePath = $_storageBasePath = LocalStorageTypes::FABRIC_STORAGE_BASE_PATH . '/' . $_storageKey;
    $_privatePath = \Kisma::get('platform.private_path');
    $_storagePath = $_storageBasePath . (version_compare(DSP_VERSION, '2.0.0', '<') ? '/blob' : null);
    $_identity = array('dsp.storage_id' => $_storageKey, 'dsp.private_storage_id' => \Kisma::get('platform.private_storage_key'));
} else {
    $_storagePath = $_storageBasePath = $_basePath . LocalStorageTypes::LOCAL_STORAGE_BASE_PATH;
    $_privatePath = $_basePath . '/storage/.private';
    $_identity = array('dsp.storage_id' => null, 'dsp.private_storage_id' => null);
}
//	Merge the common junk with specifics
$_instanceSettings = array_merge($_identity, array(LocalStorageTypes::STORAGE_BASE_PATH => $_storageBasePath, LocalStorageTypes::STORAGE_PATH => $_storagePath, LocalStorageTypes::PRIVATE_PATH => $_privatePath, LocalStorageTypes::LOCAL_CONFIG_PATH => $_privatePath . '/config', LocalStorageTypes::SNAPSHOT_PATH => $_privatePath . '/snapshots', LocalStorageTypes::APPLICATIONS_PATH => $_storagePath . '/applications', LocalStorageTypes::LIBRARY_PATH => $_storagePath . '/plugins', LocalStorageTypes::PLUGINS_PATH => $_storagePath . '/plugins', LocalStorageTypes::SWAGGER_PATH => $_storagePath . '/swagger'));
//	Keep these out of the global space
unset($_storageBasePath, $_storagePath, $_privatePath, $_identity, $_storageKey);
/** @noinspection PhpIncludeInspection */
return array_merge($_instanceSettings, array('base_path' => $_basePath, 'dsp.version' => DSP_VERSION, 'dsp_name' => \Kisma::get('platform.dsp_name'), 'dsp.auth_endpoint' => DEFAULT_INSTANCE_AUTH_ENDPOINT, 'dsp.fabric_hosted' => $_fabricHosted, 'dsp.no_persistent_storage' => false, 'cloud.endpoint' => DEFAULT_CLOUD_API_ENDPOINT, 'oauth.salt' => 'rW64wRUk6Ocs+5c7JwQ{69U{]MBdIHqmx9Wj,=C%S#cA%+?!cJMbaQ+juMjHeEx[dlSe%h%kcI', 'keys' => $_keys, 'dsp.allow_remote_logins' => true, 'dsp.allow_admin_remote_logins' => true, 'adminEmail' => DEFAULT_SUPPORT_EMAIL, 'dsp.service_config' => require __DIR__ . SERVICES_CONFIG_PATH, 'dsp.service_location_map' => array(), 'dsp.default_services' => array(array('api_name' => 'user', 'name' => 'User Login'), array('api_name' => 'system', 'name' => 'System Configuration'), array('api_name' => 'api_docs', 'name' => 'API Documentation')), 'dsp.install_type' => $_installType, 'dsp.install_name' => $_installName, 'dsp.restricted_verbs' => InstallationTypes::getRestrictedVerbs($_installType), 'dsp.default_app' => '/launchpad/index.html', 'dsp.confirm_invite_url' => '/' . $_defaultController . '/confirmInvite', 'dsp.confirm_register_url' => '/' . $_defaultController . '/confirmRegister', 'dsp.confirm_reset_url' => '/' . $_defaultController . '/confirmPassword', 'dsp.db_max_records_returned' => 1000, 'dsp.enable_profiler' => false, 'dsp.debug_level' => LoggingLevels::WARNING, 'dsp.enable_event_observers' => true, 'dsp.enable_rest_events' => true, 'dsp.enable_platform_events' => true, 'dsp.enable_event_scripts' => true, 'dsp.enable_user_scripts' => true, 'dsp.log_events' => true, 'dsp.log_all_events' => false, 'dsp.log_script_memory_usage' => false, 'dsp.log_cache_stats' => false, 'dsp.cache_stats_event' => 'system.config.read', 'login.remember_me_copy' => 'Remember Me'), $_dspSalts);
Beispiel #2
0
    unset($_salts);
}
/**
 * Application Paths
 */
\Kisma::set(array('app.app_name' => $_appName, 'app.project_root' => $_basePath, 'app.vendor_path' => $_vendorPath, 'app.log_path' => $_logFilePath, 'app.log_file_name' => $_logFileName, 'app.install_type' => array($_installType => $_installName), 'app.fabric_hosted' => $_fabricHosted, 'app.doc_root' => $_docRoot));
/**
 * Database Caching
 */
$_dbCache = $_dbCacheEnabled ? array('class' => 'CDbCache', 'connectionID' => 'db', 'cacheTableName' => 'df_sys_cache', 'autoCreateCacheTable' => true) : null;
$_storageKey = \Kisma::get('platform.storage_key');
/**
 * Set up and return the common settings...
 */
if ($_fabricHosted) {
    $_storagePath = $_storageBasePath = LocalStorageTypes::FABRIC_STORAGE_BASE_PATH . '/' . $_storageKey;
    $_privatePath = \Kisma::get('platform.private_path');
    $_storagePath = $_storageBasePath . (version_compare(DSP_VERSION, '2.0.0', '<') ? '/blob' : null);
    $_identity = array('dsp.storage_id' => $_storageKey, 'dsp.private_storage_id' => \Kisma::get('platform.private_storage_key'), 'dsp_name' => \Kisma::get('platform.dsp_name'));
} else {
    $_storagePath = $_storageBasePath = $_basePath . LocalStorageTypes::LOCAL_STORAGE_BASE_PATH;
    $_privatePath = $_basePath . '/storage/.private';
    $_identity = array('dsp.storage_id' => null, 'dsp.private_storage_id' => null, 'dsp_name' => \Kisma::get('platform.host_name'));
}
//	Merge the common junk with specifics
$_instanceSettings = array_merge($_identity, array(LocalStorageTypes::STORAGE_BASE_PATH => $_storageBasePath, LocalStorageTypes::STORAGE_PATH => $_storagePath, LocalStorageTypes::PRIVATE_PATH => $_privatePath, LocalStorageTypes::LOCAL_CONFIG_PATH => $_privatePath . '/config', LocalStorageTypes::PRIVATE_CONFIG_PATH => $_privatePath . '/config', LocalStorageTypes::SNAPSHOT_PATH => $_privatePath . '/snapshots', LocalStorageTypes::APPLICATIONS_PATH => $_storagePath . '/applications', LocalStorageTypes::LIBRARY_PATH => $_storagePath . '/plugins', LocalStorageTypes::PLUGINS_PATH => $_storagePath . '/plugins', LocalStorageTypes::SWAGGER_PATH => $_storagePath . '/swagger'));
//	Keep these out of the global space
unset($_storageBasePath, $_storagePath, $_privatePath, $_identity, $_storageKey);
/** @noinspection PhpIncludeInspection */
return array_merge($_instanceSettings, array('platform.timestamp_format' => 'Y-m-d H:i:s', 'app.base_path' => $_basePath, 'app.private_path' => $_basePath . $_instanceSettings[LocalStorageTypes::PRIVATE_PATH], 'app.plugins_path' => $_basePath . $_instanceSettings[LocalStorageTypes::PLUGINS_PATH], 'app.enable_profiler' => false, 'app.debug_level' => LoggingLevels::WARNING, 'base_path' => $_basePath, 'dsp.version' => DSP_VERSION, 'dsp.auth_endpoint' => DEFAULT_INSTANCE_AUTH_ENDPOINT, 'dsp.fabric_hosted' => $_fabricHosted, 'dsp.no_persistent_storage' => false, 'cloud.endpoint' => DEFAULT_CLOUD_API_ENDPOINT, 'dsp.metadata_endpoint' => DEFAULT_METADATA_ENDPOINT, 'oauth.salt' => 'rW64wRUk6Ocs+5c7JwQ{69U{]MBdIHqmx9Wj,=C%S#cA%+?!cJMbaQ+juMjHeEx[dlSe%h%kcI', 'keys' => $_keys, 'dsp.allow_remote_logins' => false, 'dsp.allow_admin_remote_logins' => false, 'dsp.hpp_hosts' => array(), 'adminEmail' => DEFAULT_SUPPORT_EMAIL, 'dsp.service_config' => require __DIR__ . SERVICES_CONFIG_PATH, 'dsp.service_location_map' => array(), 'dsp.default_services' => array(array('api_name' => 'user', 'name' => 'User Login'), array('api_name' => 'system', 'name' => 'System Configuration'), array('api_name' => 'api_docs', 'name' => 'API Documentation')), 'dsp.install_type' => $_installType, 'dsp.install_name' => $_installName, 'dsp.restricted_verbs' => InstallationTypes::getRestrictedVerbs($_installType), 'dsp.default_app' => DEFAULT_ADMIN_APP_PATH . '/index.html', 'dsp.confirm_invite_url' => DEFAULT_ADMIN_APP_PATH . '/#/user-invite', 'dsp.confirm_register_url' => DEFAULT_ADMIN_APP_PATH . '/#/register-confirm', 'dsp.confirm_reset_url' => DEFAULT_ADMIN_APP_PATH . '/#/reset-password', 'dsp.db_max_records_returned' => 1000, 'dsp.db_time_format' => null, 'dsp.db_date_format' => null, 'dsp.db_datetime_format' => null, 'dsp.db_timestamp_format' => null, 'dsp.log_cors_info' => false, 'dsp.enable_event_observers' => true, 'dsp.enable_rest_events' => true, 'dsp.enable_platform_events' => true, 'dsp.enable_event_scripts' => true, 'dsp.enable_user_scripts' => true, 'dsp.log_events' => true, 'dsp.log_all_events' => false, 'dsp.log_script_memory_usage' => false, 'dsp.scripting.user_libraries' => array(), 'dsp.log_cache_stats' => false, 'dsp.cache_stats_event' => 'system.config.read', 'login.remember_me_copy' => 'Remember Me', 'dsp.chat_launchpad' => false, 'dsp.chat_admin' => true), $_dspSalts);