Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7096d54

Browse filesBrowse files
committed
Merge branch '3.4' into 4.3
* 3.4: Fix EvolvableLink attribute
2 parents 63922b7 + 7e5f4db commit 7096d54
Copy full SHA for 7096d54

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎web_link.rst

Copy file name to clipboardExpand all lines: web_link.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ You can also add links to the HTTP response directly from controllers and servic
170170

171171
// alternative if you don't want to use the addLink() shortcut
172172
$linkProvider = $request->attributes->get('_links', new GenericLinkProvider());
173-
$request->attributes->set('_links', $linkProvider->withLink(new Link('preload', '/app.css', ['as' : 'style'])));
173+
$request->attributes->set('_links', $linkProvider->withLink(
174+
(new Link('preload', '/app.css'))->withAttribute('as', 'style')
175+
));
174176

175177
return $this->render('...');
176178
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.