merged branch Tobion/patch-1 (PR #3870)
Commits
-------
810b2e1
fix formatting of changelog-2.1.md
Discussion
----------
fix formatting of changelog-2.1.md
Fix indention for correct display. Also a few language fixes.
This commit is contained in:
commit
5e81389b3f
127
CHANGELOG-2.1.md
127
CHANGELOG-2.1.md
@ -55,10 +55,10 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
|
|||||||
* Added `handler_id` configuration under `session` key to represent `session.handler`
|
* Added `handler_id` configuration under `session` key to represent `session.handler`
|
||||||
service, defaults to `session.handler.native_file`.
|
service, defaults to `session.handler.native_file`.
|
||||||
* Added `gc_maxlifetime`, `gc_probability`, and `gc_divisor` to session
|
* Added `gc_maxlifetime`, `gc_probability`, and `gc_divisor` to session
|
||||||
configuration.This means session garbage collection has a
|
configuration. This means session garbage collection has a
|
||||||
`gc_probability`/`gc_divisor` chance of being run. The `gc_maxlifetime` means
|
`gc_probability`/`gc_divisor` chance of being run. The `gc_maxlifetime` defines
|
||||||
how long a session can idle for which is separate from cookie lifetime which
|
how long a session can idle for. It is different from cookie lifetime which
|
||||||
defines how long a cookie can be store on the remote client.
|
declares how long a cookie can be stored on the remote client.
|
||||||
|
|
||||||
|
|
||||||
### MonologBundle
|
### MonologBundle
|
||||||
@ -79,36 +79,36 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
|
|||||||
* [BC BREAK] refactored the user provider configuration. The configuration
|
* [BC BREAK] refactored the user provider configuration. The configuration
|
||||||
changed for the chain provider and the memory provider:
|
changed for the chain provider and the memory provider:
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
security:
|
security:
|
||||||
providers:
|
providers:
|
||||||
my_chain_provider:
|
my_chain_provider:
|
||||||
providers: [my_memory_provider, my_doctrine_provider]
|
providers: [my_memory_provider, my_doctrine_provider]
|
||||||
my_memory_provider:
|
my_memory_provider:
|
||||||
users:
|
users:
|
||||||
toto: { password: foobar, roles: [ROLE_USER] }
|
toto: { password: foobar, roles: [ROLE_USER] }
|
||||||
foo: { password: bar, roles: [ROLE_USER, ROLE_ADMIN] }
|
foo: { password: bar, roles: [ROLE_USER, ROLE_ADMIN] }
|
||||||
```
|
```
|
||||||
|
|
||||||
After:
|
After:
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
security:
|
security:
|
||||||
providers:
|
providers:
|
||||||
my_chain_provider:
|
my_chain_provider:
|
||||||
chain:
|
chain:
|
||||||
providers: [my_memory_provider, my_doctrine_provider]
|
providers: [my_memory_provider, my_doctrine_provider]
|
||||||
my_memory_provider:
|
my_memory_provider:
|
||||||
memory:
|
memory:
|
||||||
users:
|
users:
|
||||||
toto: { password: foobar, roles: [ROLE_USER] }
|
toto: { password: foobar, roles: [ROLE_USER] }
|
||||||
foo: { password: bar, roles: [ROLE_USER, ROLE_ADMIN] }
|
foo: { password: bar, roles: [ROLE_USER, ROLE_ADMIN] }
|
||||||
```
|
```
|
||||||
|
|
||||||
* [BC BREAK] Method `equals` was removed from `UserInterface` to its own new
|
* [BC BREAK] Method `equals` was removed from `UserInterface` to its own new
|
||||||
`EquatableInterface`, now user class can implement this interface to override
|
`EquatableInterface`. The user class can now implement this interface to override
|
||||||
the default implementation of users equality test.
|
the default implementation of users equality test.
|
||||||
|
|
||||||
* added a validator for the user password
|
* added a validator for the user password
|
||||||
@ -119,19 +119,19 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
|
|||||||
|
|
||||||
* Added optional CSRF protection to LogoutListener:
|
* Added optional CSRF protection to LogoutListener:
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
security:
|
security:
|
||||||
firewalls:
|
firewalls:
|
||||||
default:
|
default:
|
||||||
logout:
|
logout:
|
||||||
path: /logout_path
|
path: /logout_path
|
||||||
target: /
|
target: /
|
||||||
csrf_parameter: _csrf_token # Optional (defaults to "_csrf_token")
|
csrf_parameter: _csrf_token # Optional (defaults to "_csrf_token")
|
||||||
csrf_provider: form.csrf_provider # Required to enable protection
|
csrf_provider: form.csrf_provider # Required to enable protection
|
||||||
intention: logout # Optional (defaults to "logout")
|
intention: logout # Optional (defaults to "logout")
|
||||||
```
|
```
|
||||||
|
|
||||||
If the LogoutListener has CSRF protection enabled but cannot validate a token,
|
If the LogoutListener has CSRF protection enabled but cannot validate a token,
|
||||||
then a LogoutException will be thrown.
|
then a LogoutException will be thrown.
|
||||||
|
|
||||||
* Added `logout_url` templating helper and Twig extension, which may be used to
|
* Added `logout_url` templating helper and Twig extension, which may be used to
|
||||||
@ -152,9 +152,8 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
|
|||||||
|
|
||||||
### WebProfilerBundle
|
### WebProfilerBundle
|
||||||
|
|
||||||
[BC BREAK] You must clear old profiles after upgrading to 2.1 (don't forget to
|
* [BC BREAK] You must clear old profiles after upgrading to 2.1 (don't forget to
|
||||||
remove the table if you are using a DB)
|
remove the table if you are using a DB)
|
||||||
|
|
||||||
* added support for the request method
|
* added support for the request method
|
||||||
* added a routing panel
|
* added a routing panel
|
||||||
* added a timeline panel
|
* added a timeline panel
|
||||||
@ -243,7 +242,7 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
|
|||||||
* ArrayToChoicesTransformer to ChoicesToValuesTransformer
|
* ArrayToChoicesTransformer to ChoicesToValuesTransformer
|
||||||
* ScalarToChoiceTransformer to ChoiceToValueTransformer
|
* ScalarToChoiceTransformer to ChoiceToValueTransformer
|
||||||
|
|
||||||
to be consistent with the naming in ChoiceListInterface.
|
to be consistent with the naming in ChoiceListInterface.
|
||||||
|
|
||||||
* [BC BREAK] removed FormUtil::toArrayKey() and FormUtil::toArrayKeys().
|
* [BC BREAK] removed FormUtil::toArrayKey() and FormUtil::toArrayKeys().
|
||||||
They were merged into ChoiceList and have no public equivalent anymore.
|
They were merged into ChoiceList and have no public equivalent anymore.
|
||||||
@ -379,29 +378,29 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
|
|||||||
* [BC BREAK] changed `GetSetMethodNormalizer`'s key names from all lowercased to camelCased (e.g. `mypropertyvalue` to `myPropertyValue`)
|
* [BC BREAK] changed `GetSetMethodNormalizer`'s key names from all lowercased to camelCased (e.g. `mypropertyvalue` to `myPropertyValue`)
|
||||||
* [BC BREAK] convert the `item` XML tag to an array
|
* [BC BREAK] convert the `item` XML tag to an array
|
||||||
|
|
||||||
``` xml
|
``` xml
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<response>
|
<response>
|
||||||
<item><title><![CDATA[title1]]></title></item><item><title><![CDATA[title2]]></title></item>
|
<item><title><![CDATA[title1]]></title></item><item><title><![CDATA[title2]]></title></item>
|
||||||
</response>
|
</response>
|
||||||
```
|
```
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
|
||||||
Array()
|
Array()
|
||||||
|
|
||||||
After:
|
After:
|
||||||
|
|
||||||
Array(
|
Array(
|
||||||
[item] => Array(
|
[item] => Array(
|
||||||
[0] => Array(
|
[0] => Array(
|
||||||
[title] => title1
|
[title] => title1
|
||||||
)
|
)
|
||||||
[1] => Array(
|
[1] => Array(
|
||||||
[title] => title2
|
[title] => title2
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
### Translation
|
### Translation
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user