fixed bad merge

This commit is contained in:
Fabien Potencier 2017-03-26 08:53:54 -07:00
parent 811a6bf5eb
commit 1b634746ed
1 changed files with 23 additions and 0 deletions

View File

@ -185,6 +185,29 @@ class Response
510 => 'Not Extended', // RFC2774
511 => 'Network Authentication Required', // RFC6585
);
private static $deprecatedMethods = array(
'setDate', 'getDate',
'setExpires', 'getExpires',
'setLastModified', 'getLastModified',
'setProtocolVersion', 'getProtocolVersion',
'setStatusCode', 'getStatusCode',
'setCharset', 'getCharset',
'setPrivate', 'setPublic',
'getAge', 'getMaxAge', 'setMaxAge', 'setSharedMaxAge',
'getTtl', 'setTtl', 'setClientTtl',
'getEtag', 'setEtag',
'hasVary', 'getVary', 'setVary',
'isInvalid', 'isSuccessful', 'isRedirection',
'isClientError', 'isOk', 'isForbidden',
'isNotFound', 'isRedirect', 'isEmpty',
);
private static $deprecationsTriggered = array(
__CLASS__ => true,
BinaryFileResponse::class => true,
JsonResponse::class => true,
RedirectResponse::class => true,
StreamedResponse::class => true,
);
/**
* Constructor.