8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2720bb2 commit 7e5f4dbCopy full SHA for 7e5f4db
web_link.rst
@@ -166,12 +166,9 @@ You can also add links to the HTTP response directly from controllers and servic
166
public function index(Request $request)
167
{
168
$linkProvider = $request->attributes->get('_links', new GenericLinkProvider());
169
- $request->attributes->set(
170
- '_links',
171
- $linkProvider->withLink(
172
- (new Link('preload', '/app.css'))->withAttribute('as', 'style')
173
- )
174
- );
+ $request->attributes->set('_links', $linkProvider->withLink(
+ (new Link('preload', '/app.css'))->withAttribute('as', 'style')
+ ));
175
176
return $this->render('...');
177
}
0 commit comments