2012-04-26 21:36:50 +01:00
|
|
|
CHANGELOG
|
|
|
|
=========
|
|
|
|
|
2016-09-29 20:32:38 +01:00
|
|
|
3.2.0
|
|
|
|
-----
|
|
|
|
|
2016-09-20 18:05:52 +01:00
|
|
|
* added `AppVariable::getToken()`
|
2016-12-22 10:59:07 +00:00
|
|
|
* Deprecated the possibility to inject the Form `TwigRenderer` into the `FormExtension`.
|
|
|
|
* [BC BREAK] Registering the `FormExtension` without configuring a runtime loader for the `TwigRenderer`
|
|
|
|
doesn't work anymore.
|
|
|
|
|
|
|
|
Before:
|
|
|
|
|
|
|
|
```php
|
|
|
|
use Symfony\Bridge\Twig\Extension\FormExtension;
|
|
|
|
use Symfony\Bridge\Twig\Form\TwigRenderer;
|
|
|
|
use Symfony\Bridge\Twig\Form\TwigRendererEngine;
|
|
|
|
|
|
|
|
// ...
|
|
|
|
$rendererEngine = new TwigRendererEngine(array('form_div_layout.html.twig'));
|
|
|
|
$rendererEngine->setEnvironment($twig);
|
|
|
|
$twig->addExtension(new FormExtension(new TwigRenderer($rendererEngine, $csrfTokenManager)));
|
|
|
|
```
|
|
|
|
|
|
|
|
After:
|
|
|
|
|
|
|
|
```php
|
|
|
|
// ...
|
|
|
|
$rendererEngine = new TwigRendererEngine(array('form_div_layout.html.twig'), $twig);
|
|
|
|
// require Twig 1.30+
|
|
|
|
$twig->addRuntimeLoader(new \Twig_FactoryRuntimeLoader(array(
|
|
|
|
TwigRenderer::class => function () use ($rendererEngine, $csrfTokenManager) {
|
|
|
|
return new TwigRenderer($rendererEngine, $csrfTokenManager);
|
|
|
|
},
|
|
|
|
)));
|
|
|
|
$twig->addExtension(new FormExtension());
|
|
|
|
```
|
|
|
|
* Deprecated the `TwigRendererEngineInterface` interface.
|
2016-09-29 20:32:38 +01:00
|
|
|
|
2015-01-05 13:15:09 +00:00
|
|
|
2.7.0
|
|
|
|
-----
|
|
|
|
|
2015-01-21 00:16:45 +00:00
|
|
|
* added LogoutUrlExtension (provides `logout_url` and `logout_path`)
|
2015-01-05 13:25:19 +00:00
|
|
|
* added an HttpFoundation extension (provides the `absolute_url` and the `relative_path` functions)
|
2015-01-17 07:35:04 +00:00
|
|
|
* added AssetExtension (provides the `asset` and `asset_version` functions)
|
2015-03-20 19:00:27 +00:00
|
|
|
* Added possibility to extract translation messages from a file or files besides extracting from a directory
|
2015-01-05 13:15:09 +00:00
|
|
|
|
2013-12-19 22:11:11 +00:00
|
|
|
2.5.0
|
|
|
|
-----
|
|
|
|
|
|
|
|
* moved command `twig:lint` from `TwigBundle`
|
|
|
|
|
2013-05-06 20:11:53 +01:00
|
|
|
2.4.0
|
|
|
|
-----
|
|
|
|
|
|
|
|
* added stopwatch tag to time templates with the WebProfilerBundle
|
|
|
|
|
2012-12-30 15:38:36 +00:00
|
|
|
2.3.0
|
|
|
|
-----
|
|
|
|
|
|
|
|
* added helpers form(), form_start() and form_end()
|
|
|
|
* deprecated form_enctype() in favor of form_start()
|
|
|
|
|
2012-10-13 16:03:39 +01:00
|
|
|
2.2.0
|
|
|
|
-----
|
|
|
|
|
2013-01-10 15:47:11 +00:00
|
|
|
* added a `controller` function to help generating controller references
|
|
|
|
* added a `render_esi` and a `render_hinclude` function
|
|
|
|
* [BC BREAK] restricted the `render` tag to only accept URIs or ControllerReference instances (the signature changed)
|
|
|
|
* added a `render` function to render a request
|
2012-10-13 16:03:39 +01:00
|
|
|
* The `app` global variable is now injected even when using the twig service directly.
|
2013-01-02 21:49:54 +00:00
|
|
|
* Added an optional parameter to the `path` and `url` function which allows to generate
|
|
|
|
relative paths (e.g. "../parent-file") and scheme-relative URLs (e.g. "//example.com/dir/file").
|
2012-10-13 16:03:39 +01:00
|
|
|
|
2012-04-26 21:36:50 +01:00
|
|
|
2.1.0
|
|
|
|
-----
|
|
|
|
|
2012-07-10 10:41:19 +01:00
|
|
|
* added global variables access in a form theme
|
2012-04-26 21:36:50 +01:00
|
|
|
* added TwigEngine
|
|
|
|
* added TwigExtractor
|
|
|
|
* added a csrf_token function
|
|
|
|
* added a way to specify a default domain for a Twig template (via the
|
|
|
|
'trans_default_domain' tag)
|