@@ -185,6 +185,29 @@ class Response
185
185
510 => 'Not Extended ' , // RFC2774
186
186
511 => 'Network Authentication Required ' , // RFC6585
187
187
);
188
+ private static $ deprecatedMethods = array (
189
+ 'setDate ' , 'getDate ' ,
190
+ 'setExpires ' , 'getExpires ' ,
191
+ 'setLastModified ' , 'getLastModified ' ,
192
+ 'setProtocolVersion ' , 'getProtocolVersion ' ,
193
+ 'setStatusCode ' , 'getStatusCode ' ,
194
+ 'setCharset ' , 'getCharset ' ,
195
+ 'setPrivate ' , 'setPublic ' ,
196
+ 'getAge ' , 'getMaxAge ' , 'setMaxAge ' , 'setSharedMaxAge ' ,
197
+ 'getTtl ' , 'setTtl ' , 'setClientTtl ' ,
198
+ 'getEtag ' , 'setEtag ' ,
199
+ 'hasVary ' , 'getVary ' , 'setVary ' ,
200
+ 'isInvalid ' , 'isSuccessful ' , 'isRedirection ' ,
201
+ 'isClientError ' , 'isOk ' , 'isForbidden ' ,
202
+ 'isNotFound ' , 'isRedirect ' , 'isEmpty ' ,
203
+ );
204
+ private static $ deprecationsTriggered = array (
205
+ __CLASS__ => true ,
206
+ BinaryFileResponse::class => true ,
207
+ JsonResponse::class => true ,
208
+ RedirectResponse::class => true ,
209
+ StreamedResponse::class => true ,
210
+ );
188
211
189
212
/**
190
213
* Constructor.
0 commit comments