File tree 3 files changed +68
-0
lines changed
3 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 91
91
'readonly ' => true ,
92
92
),
93
93
'cache ' => $ cache ,
94
+ 'crypto ' => [
95
+ 'value ' => [
96
+ 'crypto_key ' => 'mysupersecretphrase ' ,
97
+ ],
98
+ 'readonly ' => true ,
99
+ ]
94
100
);
Original file line number Diff line number Diff line change 13
13
14
14
$ dotenv ->load (realpath (__DIR__ .'/../ ' ) . '/.env ' );
15
15
16
+ $ cache = array (
17
+ 'value ' => array (
18
+ 'type ' => 'files ' ,
19
+ ),
20
+ 'readonly ' => false ,
21
+ );
22
+
23
+
24
+ if (env ('USE_MEMCACHE ' )) {
25
+ $ cache = array (
26
+ 'value ' =>
27
+ array (
28
+ 'type ' => 'memcache ' ,
29
+ 'memcache ' => array (
30
+ 'host ' => '127.0.0.1 ' ,
31
+ 'port ' => '11211 ' ,
32
+ 'sid ' => $ _SERVER ["DOCUMENT_ROOT " ].'#site01 ' ,
33
+ ),
34
+ ),
35
+ 'readonly ' => false
36
+ );
37
+ }
38
+
39
+
16
40
return array (
17
41
'utf_mode ' =>
18
42
array (
66
90
),
67
91
'readonly ' => true ,
68
92
),
93
+ 'cache ' => $ cache ,
94
+ 'crypto ' => [
95
+ 'value ' => [
96
+ 'crypto_key ' => 'mysupersecretphrase ' ,
97
+ ],
98
+ 'readonly ' => true ,
99
+ ]
69
100
);
Original file line number Diff line number Diff line change 13
13
14
14
$ dotenv ->load (realpath (__DIR__ .'/../ ' ) . '/.env ' );
15
15
16
+ $ cache = array (
17
+ 'value ' => array (
18
+ 'type ' => 'files ' ,
19
+ ),
20
+ 'readonly ' => false ,
21
+ );
22
+
23
+
24
+ if (env ('USE_MEMCACHE ' )) {
25
+ $ cache = array (
26
+ 'value ' =>
27
+ array (
28
+ 'type ' => 'memcache ' ,
29
+ 'memcache ' => array (
30
+ 'host ' => '127.0.0.1 ' ,
31
+ 'port ' => '11211 ' ,
32
+ 'sid ' => $ _SERVER ["DOCUMENT_ROOT " ].'#site01 ' ,
33
+ ),
34
+ ),
35
+ 'readonly ' => false
36
+ );
37
+ }
38
+
39
+
16
40
return array (
17
41
'utf_mode ' =>
18
42
array (
66
90
),
67
91
'readonly ' => true ,
68
92
),
93
+ 'cache ' => $ cache ,
94
+ 'crypto ' => [
95
+ 'value ' => [
96
+ 'crypto_key ' => 'mysupersecretphrase ' ,
97
+ ],
98
+ 'readonly ' => true ,
99
+ ]
69
100
);
You can’t perform that action at this time.
0 commit comments