Subversion-Projekte lars-tiefland.webanos.faltradxxs.de

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
13 lars 1
<?php
2
 
3
/**
4
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
7
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
9
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
10
 * THE SOFTWARE.
11
 *
12
 * This software consists of voluntary contributions made by many individuals
13
 * and is licensed under the MIT license.
14
 *
15
 * Copyright (c) 2014-2022 Yuuki Takezawa
16
 *
17
 */
18
 
19
/**
20
 * Smarty configure
21
 * @author  yuuki.takezawa<yuuki.takezawa@comnect.jp.net>
22
 * @license http://opensource.org/licenses/MIT MIT
23
 */
24
return [
25
 
26
    // smarty file extension
27
    'extension'                           => 'tpl',
28
 
29
    //
30
    'debugging'                           => env('SMARTY_DEBUG', false),
31
 
32
    // use cache
33
    'caching'                             => env('SMARTY_CACHING', false),
34
 
35
    //
36
    'cache_lifetime'                      => env('SMARTY_CACHE_LIFE', 120),
37
 
38
    //
39
    'compile_check'                       => env('SMARTY_COMPILE_CHECK', false),
40
 
41
    // delimiters
42
    // default "{$smarty}"
43
    'left_delimiter'                      => '{',
44
    'right_delimiter'                     => '}',
45
 
46
    // path info
47
    'template_path'                       => [
48
	    base_path('resources/views/module'),
49
	    base_path('resources/views/reiter'),
50
	    base_path('resources/views'),
51
	    base_path('resources/views/common'),
52
    ],
53
 
54
    // smarty cache directory
55
    'cache_path'                          => storage_path('framework/smarty/cache'),
56
 
57
    // smarty template compiler
58
    'compile_path'                        => storage_path('framework/smarty/compile'),
59
 
60
    // smarty plugins
61
    'plugins_paths'                       => [
62
        base_path('resources/smarty/plugins'),
63
    ],
64
 
65
    // smarty configure
66
    'config_paths'                        => [
67
        base_path('resources/smarty/config'),
68
    ],
69
 
70
    /**
71
     * for develop true
72
     * for production false
73
     */
74
    'force_compile'                       => env('SMARTY_FORCE_COMPILE', true),
75
 
76
    // smarty cache driver "file", "memcached", "redis"
77
    'cache_driver'                        => env('SMARTY_CACHE_DRIVER', 'file'),
78
 
79
    // memcached servers
80
    'memcached'                           => [
81
        [
82
            'host'   => '127.0.0.1',
83
            'port'   => 11211,
84
            'weight' => 100
85
        ],
86
    ],
87
 
88
    // redis configure
89
    'redis'                               => [
90
        [
91
            'host'     => '127.0.0.1',
92
            'port'     => 6379,
93
            'database' => 0,
94
        ],
95
    ],
96
 
97
    /*
98
     * All smarty config properties are available below
99
     * Leave settings commented to use smarty's default values
100
     * See smarty docs for usage
101
     */
102
 
103
//    'auto_literal'                        => null,
104
//    'error_unassigned'                    => null,
105
//    'use_include_path'                    => null,
106
//    'joined_template_dir'                 => null,
107
//    'joined_config_dir'                   => null,
108
//    'default_template_handler_func'       => null,
109
//    'default_config_handler_func'         => null,
110
//    'default_plugin_handler_func'         => null,
111
//    'use_sub_dirs'                        => null,
112
//    'allow_ambiguous_resources'           => null,
113
//    'merge_compiled_includes'             => null,
114
//    'inheritance_merge_compiled_includes' => null,
115
//    'force_cache'                         => null,
116
//    'security_class'                      => null,
117
//    'php_handling'                        => null,
118
//    'allow_php_templates'                 => null,
119
//    'direct_access_security'              => null,
120
//    'debugging_ctrl'                      => null,
121
//    'smarty_debug_id'                     => null,
122
//    'debug_tpl'                           => null,
123
//    'error_reporting'                     => null,
124
//    'get_used_tags'                       => null,
125
//    'config_overwrite'                    => null,
126
//    'config_booleanize'                   => null,
127
//    'config_read_hidden'                  => null,
128
//    'compile_locking'                     => null,
129
//    'cache_locking'                       => null,
130
//    'locking_timeout'                     => null,
131
//    'default_resource_type'               => null,
132
//    'caching_type'                        => null,
133
//    'properties'                          => null,
134
//    'default_config_type'                 => null,
135
//    'source_objects'                      => null,
136
//    'template_objects'                    => null,
137
//    'resource_caching'                    => null,
138
//    'template_resource_caching'           => null,
139
//    'cache_modified_check'                => null,
140
//    'registered_plugins'                  => null,
141
//    'plugin_search_order'                 => null,
142
//    'registered_objects'                  => null,
143
//    'registered_classes'                  => null,
144
//    'registered_filters'                  => null,
145
//    'registered_resources'                => null,
146
//    '_resource_handlers'                  => null,
147
//    'registered_cache_resources'          => null,
148
//    '_cacheresource_handlers'             => null,
149
//    'autoload_filters'                    => null,
150
//    'default_modifiers'                   => null,
151
//    'escape_html'                         => null,
152
//    'start_time'                          => null,
153
//    '_file_perms'                         => null,
154
//    '_dir_perms'                          => null,
155
//    '_tag_stack'                          => null,
156
//    '_current_file'                       => null,
157
//    '_parserdebug'                        => null,
158
//    '_is_file_cache'                      => null,
159
//    'cache_id'                            => null,
160
//    'compile_id'                          => null,
161
//    'template_class'                      => null,
162
//    'tpl_vars'                            => null,
163
//    'parent'                              => null,
164
//    'config_vars'                         => null,
165
 
166
 
167
    /*
168
     *  If true smarty will enable security `$smarty->enableSecurity()`
169
     */
170
//    'enable_security'                     => false,
171
 
172
    /*
173
     * The following settings will be applied to the smarty security policy object `$smarty->security_policy`
174
     * Ignored if enable_security == false
175
     */
176
 
177
//     'security_policy' => [
178
//         'secure_dir' => null,
179
//         'trusted_dir' => null,
180
//         'trusted_uri' => null,
181
//         'trusted_constants' => null,
182
//         'static_classes' => null,
183
//         'trusted_static_methods' => null,
184
//         'trusted_static_properties' => null,
185
//         'php_functions' => null,
186
//         'php_modifiers' => null,
187
//         'allowed_tags' => null,
188
//         'disabled_tags' => null,
189
//         'allowed_modifiers' => null,
190
//         'disabled_modifiers' => null,
191
//         'disabled_special_smarty_vars' => null,
192
//         'streams' => null,
193
//         'allow_constants' => null,
194
//         'allow_super_globals' => null,
195
//         'max_template_nesting' => null,
196
//     ]
197
];