workflow_has_marked_place
functionworkflow_marked_places
functionAppVariable::getToken()
TwigRenderer
into the FormExtension
.FormExtension
without configuring a runtime loader for the TwigRenderer
doesn'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());
TwigRendererEngineInterface
interface.workflow_can
and workflow_transitions
)logout_url
and logout_path
)absolute_url
and the relative_path
functions)asset
and asset_version
functions)twig:lint
from TwigBundle
controller
function to help generating controller referencesrender_esi
and a render_hinclude
functionrender
tag to only accept URIs or ControllerReference instances (the signature changed)render
function to render a requestapp
global variable is now injected even when using the twig service directly.path
and url
function which allows to generate
relative paths (e.g. "../parent-file") and scheme-relative URLs (e.g. "//example.com/dir/file").