[TwigBridge] render Deprecated option 'standalone' in favor of 'strategy'
This commit is contained in:
parent
3a11efefcf
commit
caf288c57e
|
@ -21,6 +21,29 @@
|
|||
|
||||
Note: The function is the preferred way.
|
||||
|
||||
#### Deprecations
|
||||
|
||||
* The `standalone` option is deprecated and will replaced with the `strategy` option in 2.3.
|
||||
* The values `true`, `false`, `js` for the `standalone` option were deprecated and replaced respectively with the `esi`, `inline`, `hinclude` in 2.3.
|
||||
|
||||
|
||||
Before:
|
||||
|
||||
```
|
||||
{% render 'BlogBundle:Post:list' with { 'limit': 2 }, {'standalone': true} %}
|
||||
{% render 'BlogBundle:Post:list' with { 'limit': 2 }, {'standalone': false} %}
|
||||
{% render 'BlogBundle:Post:list' with { 'limit': 2 }, {'standalone': 'js'} %}
|
||||
```
|
||||
|
||||
After:
|
||||
|
||||
```
|
||||
{{ render(controller('BlogBundle:Post:list', { 'limit': 2 }), { 'strategy': 'esi'}) }}
|
||||
{{ render(controller('BlogBundle:Post:list', { 'limit': 2 }), { 'strategy': 'inline'}) }}
|
||||
{{ render(controller('BlogBundle:Post:list', { 'limit': 2 }), { 'strategy': 'hinclude'}) }}
|
||||
```
|
||||
|
||||
|
||||
### HttpFoundation
|
||||
|
||||
* The MongoDbSessionHandler default field names and timestamp type have changed.
|
||||
|
|
Reference in New Issue