forked from shopware5/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_staging.php
36 lines (34 loc) · 1.13 KB
/
config_staging.php
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
32
33
34
35
36
<?php
if (file_exists($this->DocPath()."/config.php")){
$defaultConfig = include($this->DocPath()."/config.php");
}else {
$defaultConfig = array();
}
$stagingConfig = array(
'db' => array_merge($defaultConfig["db"],array(
'dbname' => $defaultConfig["custom"]["staging_database"]
)),
'custom' => array_merge($defaultConfig["custom"],array(
'is_staging' => true,
)),
'cache' => array(
'backendOptions' => array("cache_dir"=>$this->DocPath('staging_cache_database')),
'frontendOptions' => array()
),
'httpCache' => array(
'cache_dir' => $this->DocPath('staging_cache_templates_html')
),
'template' => array(
'cacheDir' => $this->DocPath('staging_cache_templates_cache'),
'compileDir' => $this->DocPath('staging_cache_templates_compile')
),
'hook' => array(
'proxyDir' => $this->AppPath('ProxiesStaging'),
'proxyNamespace' => $this->App() . '_ProxiesStaging'
),
'model' => array(
'proxyDir' => $this->AppPath('ProxiesStaging'),
'proxyNamespace' => $this->App() . '\ProxiesStaging'
)
);
return $stagingConfig;