1 | <?php |
||
21 | class View extends \yii\web\View |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var bool |
||
26 | */ |
||
27 | public $enableMinify = true; |
||
28 | |||
29 | /** |
||
30 | * @var string filemtime or sha1 |
||
31 | */ |
||
32 | public $fileCheckAlgorithm = 'sha1'; |
||
33 | |||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | public $concatCss = true; |
||
38 | |||
39 | /** |
||
40 | * @var bool |
||
41 | */ |
||
42 | public $minifyCss = true; |
||
43 | |||
44 | /** |
||
45 | * @var bool |
||
46 | */ |
||
47 | public $concatJs = true; |
||
48 | |||
49 | /** |
||
50 | * @var bool |
||
51 | */ |
||
52 | public $minifyJs = true; |
||
53 | |||
54 | /** |
||
55 | * @var bool |
||
56 | */ |
||
57 | public $minifyOutput = false; |
||
58 | |||
59 | /** |
||
60 | * @var bool |
||
61 | */ |
||
62 | public $removeComments = true; |
||
63 | |||
64 | /** |
||
65 | * @deprecated |
||
66 | * @var string path alias to web base (in url) |
||
67 | */ |
||
68 | public $web_path = '@web'; |
||
69 | |||
70 | /** |
||
71 | * @var string path alias to web base (in url) |
||
72 | */ |
||
73 | public $webPath; |
||
74 | |||
75 | /** |
||
76 | * @deprecated |
||
77 | * @var string path alias to web base (absolute) |
||
78 | */ |
||
79 | public $base_path = '@webroot'; |
||
80 | |||
81 | /** |
||
82 | * @var string path alias to web base (absolute) |
||
83 | */ |
||
84 | public $basePath; |
||
85 | |||
86 | /** |
||
87 | * @deprecated |
||
88 | * @var string path alias to save minify result |
||
89 | */ |
||
90 | public $minify_path = '@webroot/minify'; |
||
91 | |||
92 | /** |
||
93 | * @var string path alias to save minify result |
||
94 | */ |
||
95 | public $minifyPath; |
||
96 | |||
97 | /** |
||
98 | * @deprecated |
||
99 | * @var array positions of js files to be minified |
||
100 | */ |
||
101 | public $js_position = [self::POS_END, self::POS_HEAD]; |
||
102 | |||
103 | /** |
||
104 | * @var array positions of js files to be minified |
||
105 | */ |
||
106 | public $jsPosition; |
||
107 | |||
108 | /** |
||
109 | * @var array options of minified js files |
||
110 | */ |
||
111 | public $jsOptions = []; |
||
112 | |||
113 | /** |
||
114 | * @deprecated |
||
115 | * @var bool|string charset forcibly assign, otherwise will use all of the files found charset |
||
116 | */ |
||
117 | public $force_charset = false; |
||
118 | |||
119 | /** |
||
120 | * @var bool|string charset forcibly assign, otherwise will use all of the files found charset |
||
121 | */ |
||
122 | public $forceCharset; |
||
123 | |||
124 | /** |
||
125 | * @deprecated |
||
126 | * @var bool whether to change @import on content |
||
127 | */ |
||
128 | public $expand_imports = true; |
||
129 | |||
130 | /** |
||
131 | * @var bool whether to change @import on content |
||
132 | */ |
||
133 | public $expandImports; |
||
134 | |||
135 | /** |
||
136 | * @deprecated |
||
137 | * @var int |
||
138 | */ |
||
139 | public $css_linebreak_pos = 2048; |
||
140 | |||
141 | /** |
||
142 | * @var int |
||
143 | */ |
||
144 | public $cssLinebreakPos; |
||
145 | |||
146 | /** |
||
147 | * @deprecated |
||
148 | * @var int|bool chmod of minified file. If false chmod not set |
||
149 | */ |
||
150 | public $file_mode = 0664; |
||
151 | |||
152 | /** |
||
153 | * @var int|bool chmod of minified file. If false chmod not set |
||
154 | */ |
||
155 | public $fileMode; |
||
156 | |||
157 | /** |
||
158 | * @var array schemes that will be ignored during normalization url |
||
159 | */ |
||
160 | public $schemas = ['//', 'http://', 'https://', 'ftp://']; |
||
161 | |||
162 | /** |
||
163 | * @deprecated |
||
164 | * @var bool do I need to compress the result html page. |
||
165 | */ |
||
166 | public $compress_output = false; |
||
167 | |||
168 | /** |
||
169 | * @deprecated |
||
170 | * @var array options for compressing output result |
||
171 | * * extra - use more compact algorithm |
||
172 | * * no-comments - cut all the html comments |
||
173 | */ |
||
174 | public $compress_options = ['extra' => true]; |
||
175 | |||
176 | /** |
||
177 | * @var array options for compressing output result |
||
178 | * * extra - use more compact algorithm |
||
179 | * * no-comments - cut all the html comments |
||
180 | */ |
||
181 | public $compressOptions; |
||
182 | |||
183 | /** |
||
184 | * @var array |
||
185 | */ |
||
186 | public $excludeBundles = []; |
||
187 | |||
188 | /** |
||
189 | * @var array |
||
190 | */ |
||
191 | public $excludeFiles = []; |
||
192 | |||
193 | /** |
||
194 | * @var boolean |
||
195 | */ |
||
196 | public $S3Upload = false ; |
||
197 | |||
198 | |||
199 | /** |
||
200 | * @var boolean |
||
201 | */ |
||
202 | public $awsBucket = null ; |
||
203 | |||
204 | /** |
||
205 | * @var boolean |
||
206 | * It is for linking Resource folder to asset files |
||
207 | * if Resources like images above one folder it should be "../" if two folders above "../../" |
||
208 | */ |
||
209 | public $assetsFolderPathPatch = null ; |
||
210 | |||
211 | |||
212 | /* |
||
213 | * boolean |
||
214 | * backend checke will help keep assets into root/minify folder instead of root/backend/minifiy for backend |
||
215 | */ |
||
216 | public $backendCheck = false ; |
||
217 | /* |
||
218 | * Folder name where minified files will be kept |
||
219 | */ |
||
220 | public $folderName = 'minify' ; |
||
221 | /* |
||
222 | * will be used at _getSummaryFilesHash will fix path to have same hash value as frontend or backend when files generated from console. |
||
223 | */ |
||
224 | public $modifyPath = false ; |
||
225 | public $modifyPathData = "" ; |
||
226 | |||
227 | /** |
||
228 | * This one will be added as JS file prefix while it will be uploaded to S3 bucket |
||
229 | * @var string |
||
230 | */ |
||
231 | public $prefixJsFile = "" ; |
||
232 | |||
233 | /** |
||
234 | * This one will be added as CSS file prefix while it will be uploaded to S3 bucket |
||
235 | * @var string |
||
236 | */ |
||
237 | public $prefixCssFile = "" ; |
||
238 | |||
239 | /** |
||
240 | * by the param it will be decided whether to encode content of js files into gzip or not |
||
241 | * @var bool |
||
242 | */ |
||
243 | public $gzipEncodeJs = false ; |
||
244 | |||
245 | /** |
||
246 | * by the param it will be decided whether to encode content of css files into gzip or not |
||
247 | * @var bool |
||
248 | */ |
||
249 | public $gzipEncodeCss = false ; |
||
250 | |||
251 | |||
252 | /** |
||
253 | * this will tell the versionNumber of app. It will be included in filename while it will be uploaded to S3 bucket |
||
254 | * @var string |
||
255 | */ |
||
256 | public $versionNumber = ""; |
||
257 | |||
258 | /** |
||
259 | * @throws \processfast\yii\minify\Exception |
||
260 | */ |
||
261 | 10 | public function init() |
|
338 | |||
339 | /** |
||
340 | * @inheritdoc |
||
341 | */ |
||
342 | 8 | public function endBody() |
|
356 | } |
||
357 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.