2.8 KiB
2.8 KiB
CHANGELOG
3.3.0
- added a
workflow_has_marked_placefunction - added a
workflow_marked_placesfunction
3.2.0
-
added
AppVariable::getToken() -
Deprecated the possibility to inject the Form
TwigRendererinto theFormExtension. -
[BC BREAK] Registering the
FormExtensionwithout configuring a runtime loader for theTwigRendererdoesn't work anymore.Before:
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:
// ... $rendererEngine = new TwigRendererEngine(array('form_div_layout.html.twig'), $twig); // require Twig 1.30+ $twig->addRuntimeLoader(new \Twig\RuntimeLoader\FactoryRuntimeLoader(array( TwigRenderer::class => function () use ($rendererEngine, $csrfTokenManager) { return new TwigRenderer($rendererEngine, $csrfTokenManager); }, ))); $twig->addExtension(new FormExtension()); -
Deprecated the
TwigRendererEngineInterfaceinterface. -
added WorkflowExtension (provides
workflow_canandworkflow_transitions)
2.7.0
- added LogoutUrlExtension (provides
logout_urlandlogout_path) - added an HttpFoundation extension (provides the
absolute_urland therelative_pathfunctions) - added AssetExtension (provides the
assetandasset_versionfunctions) - Added possibility to extract translation messages from a file or files besides extracting from a directory
2.5.0
- moved command
twig:lintfromTwigBundle
2.4.0
- added stopwatch tag to time templates with the WebProfilerBundle
2.3.0
- added helpers form(), form_start() and form_end()
- deprecated form_enctype() in favor of form_start()
2.2.0
- added a
controllerfunction to help generating controller references - added a
render_esiand arender_hincludefunction - [BC BREAK] restricted the
rendertag to only accept URIs or ControllerReference instances (the signature changed) - added a
renderfunction to render a request - The
appglobal variable is now injected even when using the twig service directly. - Added an optional parameter to the
pathandurlfunction which allows to generate relative paths (e.g. "../parent-file") and scheme-relative URLs (e.g. "//example.com/dir/file").
2.1.0
- added global variables access in a form theme
- 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)