-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefines.php
More file actions
31 lines (29 loc) · 1.46 KB
/
defines.php
File metadata and controls
31 lines (29 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
// 配置目录
define('org\\opencomb\\platform\\ROOT',__DIR__) ;
if( defined('SAE_TMP_PATH') ){
define('org\\opencomb\\platform\\DATAROOT','ocfs://oc') ;
}else{
define('org\\opencomb\\platform\\DATAROOT',__DIR__) ;
}
define('org\\opencomb\\platform\\EXTENSIONS_FOLDER',\org\opencomb\platform\ROOT.'/extensions') ;
define('org\\opencomb\\platform\\EXTENSIONS_URL','extensions') ;
define('org\\opencomb\\platform\\SERVICES_FOLDER',\org\opencomb\platform\DATAROOT.'/services') ;
define('org\\opencomb\\platform\\PUBLIC_FILES_FOLDER',\org\opencomb\platform\DATAROOT.'/public/files') ;
define('org\\opencomb\\platform\\PUBLIC_FILES_URL','public/files') ;
define('org\\opencomb\\platform\\FRAMEWORK_FOLDER',\org\opencomb\platform\ROOT.'/framework') ;
define('org\\opencomb\\platform\\FRAMEWORK_URL','framework') ;
define('org\\opencomb\\platform\\PLATFORM_FOLDER',\org\opencomb\platform\ROOT.'/platform') ;
define('org\\opencomb\\platform\\PLATFORM_URL','platform') ;
if( defined('SAE_TMP_PATH') ){
// 在不同环境下,仅需要修改此文件即可。因此将VFS放在此文件中。
require_once __DIR__.'/vfs/VFSWrapper.php';
require_once __DIR__.'/vfs/VirtualFileSystem.php';
require_once __DIR__.'/vfs/IPhysicalFileSystem.php';
require_once __DIR__.'/vfs/LocalFileSystem.php';
require_once __DIR__.'/vfs/SaeStorageFileSystem.php';
\org\jecat\framework\fs\vfs\VFSWrapper::vfs('ocfs')->mount(
'oc/',
new \org\jecat\framework\fs\vfs\SaeStorageFileSystem('ocstor')
) ;
}