Skip to content

Commit 00f9e3c

Browse files
committed
merged branch jfsimon/issue-7439 (PR #7476)
This PR was merged into the master branch. Discussion ---------- [HttpKernel] adds possibility to add attributes to hx:include tag This PR follows #7439 and adds escaping to attributes. This introduces 2 options to the `HIncludeFragmentRenderer::render()` method: * `id`: an optional `id` attribute for the `hx:include` tag * `attrs`: an optional array of attributes for the `hx:include` tag | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #7439 Commits ------- 670a502 [HttpKernel] added escaping for hx:include tag attributes 342d089 Allow to set id + custom attributes to hinclude tag
2 parents 542e772 + ef75a65 commit 00f9e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Fragment/ContainerAwareHIncludeFragmentRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(ContainerInterface $container, UriSigner $signer = n
3232
{
3333
$this->container = $container;
3434

35-
parent::__construct(null, $signer, $globalDefaultTemplate);
35+
parent::__construct(null, $signer, $globalDefaultTemplate, $container->getParameter('kernel.charset'));
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)