upgrade 3.1/4.0 minor fixes
This commit is contained in:
parent
b03d370be0
commit
b8e29110ca
@ -15,6 +15,7 @@ Form
|
|||||||
|
|
||||||
* The `choices_as_values` option of the `ChoiceType` has been deprecated and
|
* The `choices_as_values` option of the `ChoiceType` has been deprecated and
|
||||||
will be removed in Symfony 4.0.
|
will be removed in Symfony 4.0.
|
||||||
|
|
||||||
* Support for data objects that implements both `Traversable` and `ArrayAccess`
|
* Support for data objects that implements both `Traversable` and `ArrayAccess`
|
||||||
in `ResizeFormListener::preSubmit` method has been deprecated and will be
|
in `ResizeFormListener::preSubmit` method has been deprecated and will be
|
||||||
removed in Symfony 4.0.
|
removed in Symfony 4.0.
|
||||||
@ -25,8 +26,8 @@ FrameworkBundle
|
|||||||
* As it was never an officially supported feature, the support for absolute
|
* As it was never an officially supported feature, the support for absolute
|
||||||
template paths has been deprecated and will be removed in Symfony 4.0.
|
template paths has been deprecated and will be removed in Symfony 4.0.
|
||||||
|
|
||||||
* The following form types registered as services are deprecated since 3.1
|
* The following form types registered as services have been deprecated and
|
||||||
and will be removed in 4.0; use their fully-qualified class name instead:
|
will be removed in Symfony 4.0; use their fully-qualified class name instead:
|
||||||
|
|
||||||
- `"form.type.birthday"`
|
- `"form.type.birthday"`
|
||||||
- `"form.type.checkbox"`
|
- `"form.type.checkbox"`
|
||||||
@ -75,7 +76,8 @@ Serializer
|
|||||||
Yaml
|
Yaml
|
||||||
----
|
----
|
||||||
|
|
||||||
* Deprecated usage of `%` at the beginning of an unquoted string.
|
* Usage of `%` at the beginning of an unquoted string has been deprecated and
|
||||||
|
will lead to a `ParseException` in Symfony 4.0.
|
||||||
|
|
||||||
* The `Dumper::setIndentation()` method is deprecated and will be removed in
|
* The `Dumper::setIndentation()` method is deprecated and will be removed in
|
||||||
Symfony 4.0. Pass the indentation level to the constructor instead.
|
Symfony 4.0. Pass the indentation level to the constructor instead.
|
||||||
@ -140,7 +142,8 @@ Yaml
|
|||||||
Yaml::dump(array('foo' => new A(), 'bar' => 1), 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE);
|
Yaml::dump(array('foo' => new A(), 'bar' => 1), 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE);
|
||||||
```
|
```
|
||||||
|
|
||||||
* Deprecated support for passing `true`/`false` as the fifth argument to the `dump()` method to toggle object support.
|
* Deprecated support for passing `true`/`false` as the fifth argument to the
|
||||||
|
`dump()` method to toggle object support.
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
|
||||||
@ -160,5 +163,5 @@ Yaml
|
|||||||
Validator
|
Validator
|
||||||
---------
|
---------
|
||||||
|
|
||||||
* The `DateTimeValidator::PATTERN` constant is deprecated and will be removed in
|
* The `DateTimeValidator::PATTERN` constant has been deprecated and will be
|
||||||
Symfony 4.0.
|
removed in Symfony 4.0.
|
||||||
|
@ -15,10 +15,15 @@ Form
|
|||||||
* The `choices_as_values` option of the `ChoiceType` has been removed.
|
* The `choices_as_values` option of the `ChoiceType` has been removed.
|
||||||
|
|
||||||
* Support for data objects that implements both `Traversable` and
|
* Support for data objects that implements both `Traversable` and
|
||||||
`ArrayAccess` in `ResizeFormListener::preSubmit` method has been removed
|
`ArrayAccess` in `ResizeFormListener::preSubmit` method has been removed.
|
||||||
|
|
||||||
* The following form types registered as services has been removed; use
|
FrameworkBundle
|
||||||
their fully-qualified class name instead:
|
---------------
|
||||||
|
|
||||||
|
* Support for absolute template paths has been removed.
|
||||||
|
|
||||||
|
* The following form types registered as services have been removed; use their
|
||||||
|
fully-qualified class name instead:
|
||||||
|
|
||||||
- `"form.type.birthday"`
|
- `"form.type.birthday"`
|
||||||
- `"form.type.checkbox"`
|
- `"form.type.checkbox"`
|
||||||
@ -50,16 +55,12 @@ Form
|
|||||||
- `"form.type.submit"`
|
- `"form.type.submit"`
|
||||||
- `"form.type.reset"`
|
- `"form.type.reset"`
|
||||||
|
|
||||||
FrameworkBundle
|
|
||||||
---------------
|
|
||||||
|
|
||||||
* Support for absolute template paths has been removed from the template name parser.
|
|
||||||
|
|
||||||
HttpKernel
|
HttpKernel
|
||||||
----------
|
----------
|
||||||
|
|
||||||
* Possibility to pass objects as URI attributes to the ESI and SSI renderers
|
* Possibility to pass objects as URI attributes to the ESI and SSI renderers
|
||||||
has been removed. The inline fragment renderer should be used with object attributes.
|
has been removed. The inline fragment renderer should be used with object
|
||||||
|
attributes.
|
||||||
|
|
||||||
Serializer
|
Serializer
|
||||||
----------
|
----------
|
||||||
@ -136,7 +137,8 @@ Yaml
|
|||||||
Yaml::dump(array('foo' => new A(), 'bar' => 1), 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE);
|
Yaml::dump(array('foo' => new A(), 'bar' => 1), 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE);
|
||||||
```
|
```
|
||||||
|
|
||||||
* Removed support for passing `true`/`false` as the fifth argument to the `dump()` method to toggle object support.
|
* Removed support for passing `true`/`false` as the fifth argument to the
|
||||||
|
`dump()` method to toggle object support.
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user