Skip to content

Commit

Permalink
[TwigBridge] render Deprecated option 'standalone' in favor of 'strat…
Browse files Browse the repository at this point in the history
…egy'
  • Loading branch information
aitboudad committed Mar 17, 2013
1 parent 3a11efe commit caf288c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions UPGRADE-2.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit caf288c

Please sign in to comment.