Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b63474

Browse files
committed
fixed bad merge
1 parent 811a6bf commit 1b63474

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,29 @@ class Response
185185
510 => 'Not Extended', // RFC2774
186186
511 => 'Network Authentication Required', // RFC6585
187187
);
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+
);
188211

189212
/**
190213
* Constructor.

0 commit comments

Comments
 (0)