Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42ea086

Browse files
authored
Mention setFaviconPath() method
1 parent 5b82663 commit 42ea086

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

doc/upgrade.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,12 @@ considered useful:
118118
public function configureAssets(Assets $assets): Assets
119119
{
120120
return Assets::new()
121-
// ...
122-
->addHtmlContentToHead('<link rel="icon" type="image/png" href="/favicon-admin.png" />');
121+
// you can either add an HTML snippet
122+
->addHtmlContentToHead('<link rel="icon" type="image/png" href="/favicon-admin.png" />')
123+
124+
// or use
125+
->setFaviconPath('/favicon-admin.png')
126+
;
123127
}
124128
}
125129

0 commit comments

Comments
 (0)