|  Download CHANGELOG5.3 * Add the SessionFactory,NativeSessionStorageFactory,PhpBridgeSessionStorageFactoryandMockFileSessionStorageFactoryclasses
 * CallingRequest::getSession()when there is no available session throws aSessionNotFoundException* Add theRequestStack::getSessionmethod
 * Deprecate theNamespacedAttributeBagclass
 * AddResponseFormatSamePHPUnit constraint
 * Deprecate theRequestStack::getMasterRequest()method and addgetMainRequest()as replacement 5.2.0 * added support for X-Forwarded-Prefixheader
 * addedHeaderUtils::parseQuery(): it does the same asparse_str()but preserves dots in variable names
 * addedFile::getContent()* added ability to use comma separated ip addresses forRequestMatcher::matchIps()* addedRequest::toArray()to parse a JSON request body to an array
 * addedRateLimiter\RequestRateLimiterInterfaceandRateLimiter\AbstractRequestRateLimiter* deprecated not passing aClosuretogether withFILTER_CALLBACKtoParameterBag::filter(); wrap your filter in a closure instead.
 * Deprecated theRequest::HEADER_X_FORWARDED_ALLconstant, use eitherHEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTOorHEADER_X_FORWARDED_AWS_ELBorHEADER_X_FORWARDED_TRAEFIKconstants instead.
 * DeprecatedBinaryFileResponse::create(), use__construct()instead 5.1.0 * added Cookie::withValue,Cookie::withDomain,Cookie::withExpires,Cookie::withPath,Cookie::withSecure,Cookie::withHttpOnly,Cookie::withRaw,Cookie::withSameSite* DeprecateResponse::create(),JsonResponse::create(),RedirectResponse::create(), andStreamedResponse::create()methods (use__construct()instead)
 * addedRequest::preferSafeContent()andResponse::setContentSafe()to handle "safe" HTTP preference
   according to RFC 8674
 * made the Mime component an optional dependency
 * addedMarshallingSessionHandler,IdentityMarshaller* madeSessionaccept a callback to report when the session is being used
 * Add support for all core cache control directives
 * AddedSymfony\Component\HttpFoundation\InputBag* Deprecated retrieving non-string values usingInputBag::get(), useInputBag::all()if you need access to the collection of values 5.0.0 * made Cookieauto-secure and lax by default
 * removed classes in theMimeTypenamespace, use the Symfony Mime component instead
 * removed methodUploadedFile::getClientSize()and the related constructor argument
 * madeRequest::getSession()throw if the session has not been set before
 * removedResponse::HTTP_RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL* passing a null url when instantiating aRedirectResponseis not allowed 4.4.0 * passing arguments to Request::isMethodSafe()is deprecated.
 *ApacheRequestis deprecated, use theRequestclass instead.
 * passing a third argument toHeaderBag::get()is deprecated, use methodall()instead
 * [BC BREAK]PdoSessionHandlerwith MySQL changed the type of the lifetime column,
   make sure to runALTER TABLE sessions MODIFY sess_lifetime INTEGER UNSIGNED NOT NULLto
   update your database.
 *PdoSessionHandlernow precalculates the expiry timestamp in the lifetime column, make sure to run `CREATE INDEX EXPIRY ON sessions (sess_lifetime)` to update your database
to speed up garbage collection of expired sessions.
  * added SessionHandlerFactoryto create session handlers with a DSN
 * addedIpUtils::anonymize()to help with GDPR compliance. 4.3.0 * added PHPUnit constraints: RequestAttributeValueSame,ResponseCookieValueSame,ResponseHasCookie,ResponseHasHeader,ResponseHeaderSame,ResponseIsRedirected,ResponseIsSuccessful, andResponseStatusCodeSame* deprecatedMimeTypeGuesserInterfaceandExtensionGuesserInterfacein favor ofSymfony\Component\Mime\MimeTypesInterface.
 * deprecatedMimeTypeandMimeTypeExtensionGuesserin favor ofSymfony\Component\Mime\MimeTypes.
 * deprecatedFileBinaryMimeTypeGuesserin favor ofSymfony\Component\Mime\FileBinaryMimeTypeGuesser.
 * deprecatedFileinfoMimeTypeGuesserin favor ofSymfony\Component\Mime\FileinfoMimeTypeGuesser.
 * addedUrlHelperthat allows to get an absolute URL and a relative path for a given path 4.2.0 * the default value of the "$secure" and "$samesite" arguments of Cookie's constructor
   will respectively change from "false" to "null" and from "null" to "lax" in Symfony
   5.0, you should define their values explicitly or use "Cookie::create()" instead.
 * added matchPort()in RequestMatcher 4.1.3 * [BC BREAK] Support for the IIS-only X_ORIGINAL_URLandX_REWRITE_URLHTTP headers has been dropped for security reasons. 4.1.0 * Query string normalization uses parse_str()instead of custom parsing logic.
 * Passing the file size to the constructor of theUploadedFileclass is deprecated.
 * ThegetClientSize()method of theUploadedFileclass is deprecated. UsegetSize()instead.
 * addedRedisSessionHandlerto use Redis as a session storage
 * Theget()method of theAcceptHeaderclass now takes into account the*and/default values (if they are present in the Accept HTTP header)
   when looking for items.
 * deprecatedRequest::getSession()when no session has been set. UseRequest::hasSession()instead.
 * addedCannotWriteFileException,ExtensionFileException,FormSizeFileException,IniSizeFileException,NoFileException,NoTmpDirFileException,PartialFileExceptionto
   handle failedUploadedFile.
 * addedMigratingSessionHandlerfor migrating between two session handlers without losing sessions
 * addedHeaderUtils. 4.0.0 * the Request::setTrustedHeaderName()andRequest::getTrustedHeaderName()methods have been removed
 * theRequest::HEADER_CLIENT_IPconstant has been removed, useRequest::HEADER_X_FORWARDED_FORinstead
 * theRequest::HEADER_CLIENT_HOSTconstant has been removed, useRequest::HEADER_X_FORWARDED_HOSTinstead
 * theRequest::HEADER_CLIENT_PROTOconstant has been removed, useRequest::HEADER_X_FORWARDED_PROTOinstead
 * theRequest::HEADER_CLIENT_PORTconstant has been removed, useRequest::HEADER_X_FORWARDED_PORTinstead
 * checking for cacheable HTTP methods using theRequest::isMethodSafe()method (by not passingfalseas its argument) is not supported anymore and
   throws a\BadMethodCallException* theWriteCheckSessionHandler,NativeSessionHandlerandNativeProxyclasses have been removed
 * setting session save handlers that do not implement\SessionHandlerInterfaceinNativeSessionStorage::setSaveHandler()is not supported anymore and throws a\TypeError 3.4.0 * implemented PHP 7.0's SessionUpdateTimestampHandlerInterfacewith a newAbstractSessionHandlerbase class and a newStrictSessionHandlerwrapper
 * deprecated theWriteCheckSessionHandler,NativeSessionHandlerandNativeProxyclasses
 * deprecated setting session save handlers that do not implement\SessionHandlerInterfaceinNativeSessionStorage::setSaveHandler()* deprecated usingMongoDbSessionHandlerwith the legacy mongo extension; use it with the mongodb/mongodb package and ext-mongodb instead
 * deprecatedMemcacheSessionHandler; useMemcachedSessionHandlerinstead 3.3.0 * the Request::setTrustedProxies()method takes a new$trustedHeaderSetargument,
   see https://symfony.com/doc/current/deployment/proxies.html for more info,
 * deprecated theRequest::setTrustedHeaderName()andRequest::getTrustedHeaderName()methods,
 * addedFile\Stream, to be passed toBinaryFileResponsewhen the size of the served file is unknown,
   disablingRangeandContent-Lengthhandling, switching to chunked encoding instead
 * added theCookie::fromString()method that allows to create a cookie from a
   raw header string 3.1.0 * Added support for creating JsonResponsewith a string of JSON data 3.0.0 * The precedence of parameters returned from Request::get()changed from "GET, PATH, BODY" to "PATH, GET, BODY" 2.8.0 * Finding deep items in ParameterBag::get()is deprecated since version 2.8 and
   will be removed in 3.0. 2.6.0 * PdoSessionHandler changes
   - implemented different session locking strategies to prevent loss of data by concurrent access to the same session
   - [BC BREAK] save session data in a binary column without base64_encode
   - [BC BREAK] added lifetime column to the session table which allows to have different lifetimes for each session
   - implemented lazy connections that are only opened when a session is used by either passing a dsn string  explicitly or falling back to session.save_path ini setting
    - added a createTable method that initializes a correctly defined table depending on the database vendor 2.5.0 * added JsonResponse::setEncodingOptions()&JsonResponse::getEncodingOptions()for easier manipulation
   of the options used while encoding data to JSON format. 2.4.0 * added RequestStack
 * added Request::getEncodings()
 * added accessors methods to session handlers 2.3.0 * added support for ranges of IPs in trusted proxies
 * UploadedFile::isValidnow returns false if the file was not uploaded via HTTP (in a non-test mode)
 * Improved error-handling of\Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandlerto ensure the supplied PDO handler throws Exceptions on error (as the class expects). Added related test cases
   to verify that Exceptions are properly thrown when the PDO queries fail. 2.2.0 * fixed the Request::create() precedence (URI information always take precedence now)
 * added Request::getTrustedProxies()
 * deprecated Request::isProxyTrusted()
 * [BC BREAK] JsonResponse does not turn a top level empty array to an object anymore, use an ArrayObject to enforce objects
 * added a IpUtils class to check if an IP belongs to a CIDR
 * added Request::getRealMethod() to get the "real" HTTP method (getMethod() returns the "intended" HTTP method)
 * disabled _method request parameter support by default (call Request::enableHttpMethodParameterOverride() to
   enable it, and Request::getHttpMethodParameterOverride() to check if it is supported)
 * Request::splitHttpAcceptHeader() method is deprecated and will be removed in 2.3
 * Deprecated Flashbag::count() and \Countable interface, will be removed in 2.3 2.1.0 * added Request::getSchemeAndHttpHost() and Request::getUserInfo()
 * added a fluent interface to the Response class
 * added Request::isProxyTrusted()
 * added JsonResponse
 * added a getTargetUrl method to RedirectResponse
 * added support for streamed responses
 * made Response::prepare() method the place to enforce HTTP specification
 * [BC BREAK] moved management of the locale from the Session class to the Request class
 * added a generic access to the PHP built-in filter mechanism: ParameterBag::filter()
 * made FileBinaryMimeTypeGuesser command configurable
 * added Request::getUser() and Request::getPassword()
 * added support for the PATCH method in Request
 * removed the ContentTypeMimeTypeGuesser class as it is deprecated and never used on PHP 5.3
 * added ResponseHeaderBag::makeDisposition() (implements RFC 6266)
 * made mimetype to extension conversion configurable
 * [BC BREAK] Moved all session related classes and interfaces into own namespace, as
   Symfony\Component\HttpFoundation\Sessionand renamed classes accordingly.
   Session handlers are located in the subnamespaceSymfony\Component\HttpFoundation\Session\Handler.
 * SessionHandlers must implement\SessionHandlerInterfaceor extend from theSymfony\Component\HttpFoundation\Storage\Handler\NativeSessionHandlerbase class.
 * Added internal storage driver proxy mechanism for forward compatibility with
   PHP 5.4\SessionHandlerclass.
 * Added session handlers for custom Memcache, Memcached and Null session save handlers.
 * [BC BREAK] RemovedNativeSessionStorageand replaced withNativeFileSessionHandler.
 * [BC BREAK]SessionStorageInterfacemethods removed:write(),read()andremove().  AddedgetBag(),registerBag().  TheNativeSessionStorageclass
   is a mediator for the session storage internals including the session handlers
   which do the real work of participating in the internal PHP session workflow.
 * [BC BREAK] Introduced mock implementations ofSessionStorageto enable unit
   and functional testing without starting real PHP sessions.  RemovedArraySessionStorage, and replaced withMockArraySessionStoragefor unit
   tests; removedFilesystemSessionStorage, and replaced withMockFileSessionStoragefor functional tests.  These do not interact with global session ini
   configuration values, session functions or$_SESSIONsuperglobal. This means
   they can be configured directly allowing multiple instances to work without
   conflicting in the same PHP process.
 * [BC BREAK] Removed theclose()method from theSessionclass, as this is
   now redundant.
 * Deprecated the following methods from the Session class:setFlash(),setFlashes()getFlash(),hasFlash(), andremoveFlash(). UsegetFlashBag()instead
   which returns aFlashBagInterface.
 *Session->clear()now only clears session attributes as before it cleared
   flash messages and attributes.Session->getFlashBag()->all()clears flashes now.
 * Session data is now managed bySessionBagInterfaceto better encapsulate
   session data.
 * Refactored session attribute and flash messages system to their ownSessionBagInterfaceimplementations.
 * AddedFlashBag. Flashes expire when retrieved byget()orall(). This
   implementation is ESI compatible.
 * AddedAutoExpireFlashBag(default) to replicate Symfony 2.0.x auto expire
   behavior of messages auto expiring after one page page load.  Messages must
   be retrieved byget()orall().
 * AddedSymfony\Component\HttpFoundation\Attribute\AttributeBagto replicate
   attributes storage behavior from 2.0.x (default).
 * AddedSymfony\Component\HttpFoundation\Attribute\NamespacedAttributeBagfor
   namespace session attributes.
 * Flash API can stores messages in an array so there may be multiple messages
   per flash type.  The oldSessionclass API remains without BC break as it
   will allow single messages as before.
 * Added basic session meta-data to the session to record session create time,
   last updated time, and the lifetime of the session cookie that was provided
   to the client.
 * Request::getClientIp() method doesn't take a parameter anymore but bases
   itself on the trustProxy parameter.
 * Added isMethod() to Request object.
 * [BC BREAK] The methodsgetPathInfo(),getBaseUrl()andgetBasePath()of
   aRequestnow all return a raw value (vs a urldecoded value before). Any call
   to one of these methods must be checked and wrapped in arawurldecode()if
   needed. |