Subversion-Projekte lars-tiefland.laravel_shop

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
105 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'                       => base_path('resources/views'),
48
 
49
    // smarty cache directory
50
    'cache_path'                          => storage_path('framework/smarty/cache'),
51
 
52
    // smarty template compiler
53
    'compile_path'                        => storage_path('framework/smarty/compile'),
54
 
55
    // smarty plugins
56
    'plugins_paths'                       => [
57
        base_path('resources/smarty/plugins'),
58
    ],
59
 
60
    // smarty configure
61
    'config_paths'                        => [
62
        base_path('resources/smarty/config'),
63
    ],
64
 
65
    /**
66
     * for develop true
67
     * for production false
68
     */
69
    'force_compile'                       => env('SMARTY_FORCE_COMPILE', true),
70
 
71
    // smarty cache driver "file", "memcached", "redis"
72
    'cache_driver'                        => env('SMARTY_CACHE_DRIVER', 'file'),
73
 
74
    // memcached servers
75
    'memcached'                           => [
76
        [
77
            'host'   => '127.0.0.1',
78
            'port'   => 11211,
79
            'weight' => 100
80
        ],
81
    ],
82
 
83
    // redis configure
84
    'redis'                               => [
85
        [
86
            'host'     => '127.0.0.1',
87
            'port'     => 6379,
88
            'database' => 0,
89
        ],
90
    ],
91
 
92
    /*
93
     * All smarty config properties are available below
94
     * Leave settings commented to use smarty's default values
95
     * See smarty docs for usage
96
     */
97
 
98
//    'auto_literal'                        => null,
99
//    'error_unassigned'                    => null,
100
//    'use_include_path'                    => null,
101
//    'joined_template_dir'                 => null,
102
//    'joined_config_dir'                   => null,
103
//    'default_template_handler_func'       => null,
104
//    'default_config_handler_func'         => null,
105
//    'default_plugin_handler_func'         => null,
106
//    'use_sub_dirs'                        => null,
107
//    'allow_ambiguous_resources'           => null,
108
//    'merge_compiled_includes'             => null,
109
//    'inheritance_merge_compiled_includes' => null,
110
//    'force_cache'                         => null,
111
//    'security_class'                      => null,
112
//    'php_handling'                        => null,
113
//    'allow_php_templates'                 => null,
114
//    'direct_access_security'              => null,
115
//    'debugging_ctrl'                      => null,
116
//    'smarty_debug_id'                     => null,
117
//    'debug_tpl'                           => null,
118
//    'error_reporting'                     => null,
119
//    'get_used_tags'                       => null,
120
//    'config_overwrite'                    => null,
121
//    'config_booleanize'                   => null,
122
//    'config_read_hidden'                  => null,
123
//    'compile_locking'                     => null,
124
//    'cache_locking'                       => null,
125
//    'locking_timeout'                     => null,
126
//    'default_resource_type'               => null,
127
//    'caching_type'                        => null,
128
//    'properties'                          => null,
129
//    'default_config_type'                 => null,
130
//    'source_objects'                      => null,
131
//    'template_objects'                    => null,
132
//    'resource_caching'                    => null,
133
//    'template_resource_caching'           => null,
134
//    'cache_modified_check'                => null,
135
//    'registered_plugins'                  => null,
136
//    'plugin_search_order'                 => null,
137
//    'registered_objects'                  => null,
138
//    'registered_classes'                  => null,
139
//    'registered_filters'                  => null,
140
//    'registered_resources'                => null,
141
//    '_resource_handlers'                  => null,
142
//    'registered_cache_resources'          => null,
143
//    '_cacheresource_handlers'             => null,
144
//    'autoload_filters'                    => null,
145
//    'default_modifiers'                   => null,
146
//    'escape_html'                         => null,
147
//    'start_time'                          => null,
148
//    '_file_perms'                         => null,
149
//    '_dir_perms'                          => null,
150
//    '_tag_stack'                          => null,
151
//    '_current_file'                       => null,
152
//    '_parserdebug'                        => null,
153
//    '_is_file_cache'                      => null,
154
//    'cache_id'                            => null,
155
//    'compile_id'                          => null,
156
//    'template_class'                      => null,
157
//    'tpl_vars'                            => null,
158
//    'parent'                              => null,
159
//    'config_vars'                         => null,
160
 
161
 
162
    /*
163
     *  If true smarty will enable security `$smarty->enableSecurity()`
164
     */
165
//    'enable_security'                     => false,
166
 
167
    /*
168
     * The following settings will be applied to the smarty security policy object `$smarty->security_policy`
169
     * Ignored if enable_security == false
170
     */
171
 
172
//     'security_policy' => [
173
//         'secure_dir' => null,
174
//         'trusted_dir' => null,
175
//         'trusted_uri' => null,
176
//         'trusted_constants' => null,
177
//         'static_classes' => null,
178
//         'trusted_static_methods' => null,
179
//         'trusted_static_properties' => null,
180
//         'php_functions' => null,
181
//         'php_modifiers' => null,
182
//         'allowed_tags' => null,
183
//         'disabled_tags' => null,
184
//         'allowed_modifiers' => null,
185
//         'disabled_modifiers' => null,
186
//         'disabled_special_smarty_vars' => null,
187
//         'streams' => null,
188
//         'allow_constants' => null,
189
//         'allow_super_globals' => null,
190
//         'max_template_nesting' => null,
191
//     ]
192
];