forked from shopware5/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_staging.php
38 lines (36 loc) · 1.31 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
37
38
<?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_cache_general"]
)),
'custom' => array_merge($defaultConfig["custom"],array(
'is_staging' => true,
)),
'cache' => array(
'backendOptions' => array("cache_dir" => $this->DocPath('staging_cache_general')),
'frontendOptions' => array()
),
'httpCache' => array(
'cache_dir' => $this->DocPath('staging_cache_templates_html')
),
'template' => array(
'cacheDir' => $this->DocPath('staging_cache_templates'),
'compileDir' => $this->DocPath('staging_cache_templates')
),
'hook' => array(
'proxyDir' => $this->DocPath('staging_cache_proxies'),
'proxyNamespace' => $this->App() . '_ProxiesStaging'
),
'model' => array(
'fileCacheDir' => $this->DocPath('staging_cache_doctrine_filecache'),
'attributeDir' => $this->DocPath('staging_cache_doctrine_attributes'),
'proxyDir' => $this->DocPath('staging_cache_doctrine_proxies'),
'proxyNamespace' => $this->App() . '\ProxiesStaging'
)
);
return $stagingConfig;