This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/HttpFoundation
Fabien Potencier 74bc699b27 moved management of the locale from the Session class to the Request class
The locale management does not require sessions anymore.

In the Symfony2 spirit, the locale should be part of your URLs. If this is the case
(via the special _locale request attribute), Symfony will store it in the request
(getLocale()).

This feature is now also configurable/replaceable at will as everything is now managed
by the new LocaleListener event listener.

How to upgrade:

The default locale configuration has been moved from session to the main configuration:

Before:

framework:
    session:
        default_locale: en

After:

framework:
    default_locale: en

Whenever you want to get the current locale, call getLocale() on the request (was on the
session before).
2011-10-08 18:34:49 +02:00
..
File Skip test if running as superuser as it will fail 2011-10-08 14:10:49 +02:00
SessionStorage Increase code coverage for: YamlParser, Validators, PhpEngine + Helpers, HttpFoundation 2011-06-16 11:43:27 +02:00
ApacheRequestTest.php [HttpFoundation] fixed ApacheRequest, added tests 2011-03-16 06:13:01 -07:00
CookieTest.php [HttpFoundation] standardized cookie paths (an empty path is equivalent to /) 2011-09-28 10:49:50 +02:00
FileBagTest.php merged branch stloyd/tests_fix (PR #1860) 2011-08-27 08:01:17 +02:00
HeaderBagTest.php [Tests] Use proper phpunit assertion functions: "assertTrue", "assertFalse", "assertNull" 2011-08-25 15:41:15 +02:00
ParameterBagTest.php Updates according to suggestions. 2011-09-27 20:14:32 +05:45
RequestMatcherTest.php moved management of the locale from the Session class to the Request class 2011-10-08 18:34:49 +02:00
RequestTest.php merged 2.0 2011-09-28 16:08:31 +02:00
ResponseHeaderBagTest.php merged 2.0 2011-09-28 16:08:31 +02:00
ResponseTest.php [HttpFoundation] fixed a unit tests 2011-08-14 10:56:48 +02:00
ServerBagTest.php [HttpFoundation] made PHP_AUTH_PW optional 2011-07-26 09:32:45 +02:00
SessionTest.php moved management of the locale from the Session class to the Request class 2011-10-08 18:34:49 +02:00